Array functions#

Aggregation#

sum(collection)

Returns a staircase.Stairs object representing the sum of multiple step functions.

mean(collection)

Returns a staircase.Stairs object representing the mean of multiple step functions.

median(collection)

Returns a staircase.Stairs object representing the median of multiple step functions.

min(collection)

Returns a staircase.Stairs object representing the minimum of multiple step functions.

max(collection)

Returns a staircase.Stairs object representing the maximum of multiple step functions.

agg(collection, func)

Returns a staircase.Stairs object representing the aggregate of multiple step functions.

logical_or(collection)

Returns a boolean-valued step function resulting from a logical-or operation.

logical_and(collection)

Returns a boolean-valued step function resulting from a logical-and operation.

plot(collection[, ax])

Plots a collection of Stairs instances to a single axes

Transform functions#

sample(collection, x)

Takes a collection of Stairs instances and evaluates their values across a set of points.

limit(collection, x[, side])

Takes a collection of Stairs instances and evaluates their limits across a 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