pyinterp.core.DescriptiveStatisticsFloat32#

class pyinterp.core.DescriptiveStatisticsFloat32(self, values: numpy.ndarray[numpy.float64], weights: numpy.ndarray[numpy.float64] | None = None, axis: List[int] | None = None)#

Bases: pybind11_object

Univariate descriptive statistics.

Parameters:
  • values – Array containing numbers whose statistics are desired.

  • weights – An array of weights associated with the values. If not provided, all values are assumed to have equal weight.

  • axes – Axis or axes along which to compute the statistics. If not provided, the statistics are computed over the flattened array.

Public Methods

count(self)

Returns the count of samples.

kurtosis(self)

Returns the kurtosis of samples.

max(self)

Returns maximum of samples.

mean(self)

Returns the mean of samples.

min(self)

Returns the minimum of samples.

skewness(self)

Returns the skewness of samples.

sum(self)

Returns the sum of samples.

sum_of_weights(self)

Returns the sum of samples.

variance(self[, ddof])

Returns the variance of samples.

Special Methods

__add__(self, other)

Overrides the default behavior of the + operator.

__copy__(self)

Implements the shallow copy operation.

__getstate__(self)

__iadd__(self, other)

Overrides the default behavior of the += operator.

__setstate__(self, arg0)