Statistical Functions

Array API specification for statistical functions.

A conforming implementation of the array API standard must provide and support the following functions.

Objects in API

cumulative_prod(x, /, *, axis=None, dtype=None, include_initial=False)

Calculates the cumulative product of elements in the input array x.

cumulative_sum(x, /, *, axis=None, dtype=None, include_initial=False)

Calculates the cumulative sum of elements in the input array x.

max(x, /, *, axis=None, keepdims=False)

Calculates the maximum value of the input array x.

mean(x, /, *, axis=None, keepdims=False)

Calculates the arithmetic mean of the input array x.

min(x, /, *, axis=None, keepdims=False)

Calculates the minimum value of the input array x.

prod(x, /, *, axis=None, dtype=None, keepdims=False)

Calculates the product of input array x elements.

std(x, /, *, axis=None, correction=0.0, keepdims=False)

Calculates the standard deviation of the input array x.

sum(x, /, *, axis=None, dtype=None, keepdims=False)

Calculates the sum of the input array x.

var(x, /, *, axis=None, correction=0.0, keepdims=False)

Calculates the variance of the input array x.