Array functions

Aggregation

sum(collection)

mean(collection)

Takes a collection of Stairs instances and returns the mean of the corresponding step functions.

median(collection)

Takes a collection of Stairs instances and returns the median of the corresponding step functions.

min(collection)

Takes a collection of Stairs instances and returns the minimum of the corresponding step functions.

max(collection)

Takes a collection of Stairs instances and returns the maximum of the corresponding step functions.

agg(collection, func)

Takes a collection of Stairs instances and returns a single instance representing the aggregation.

Transform functions

sample(collection, x)

Takes a dict-like collection of Stairs instances and evaluates their values across a common set of points.

limit(collection, x[, side])

Takes a dict-like collection of Stairs instances and evaluates their values across a common set of points.

cov(collection[, where])

Calculates the covariance matrix for a collection of Stairs instances

corr(collection[, where])

Calculates the correlation matrix for a collection of Stairs instances