pyinterp.core.StreamingHistogramFloat64¶
- class pyinterp.core.StreamingHistogramFloat64(self, values: numpy.ndarray[tuple[int, ...], numpy.dtype[numpy.float32]], weights: numpy.ndarray[tuple[int, ...], numpy.dtype[numpy.float32]] | None = None, axis: list[int] | None = None, bin_count: int | None = None)¶
- Bases: - pybind11_object- Compute streaming histogram for statistical analysis. - 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. 
- axis – Axis or axes along which to compute the statistics. If not provided, the statistics are computed over the flattened array. 
- bin_count – Maximum number of bins to use to calculate the histogram. Default is 100. 
 
 - Public Methods - bins(self)- Returns the histogram bins. - 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. - quantile(self[, q])- Returns the quantile of samples. - resize(self, arg0)- Resize the maximum number of bins. - size(self)- Returns the number of bins. - skewness(self)- Returns the skewness of samples. - sum_of_weights(self)- Returns the sum of samples. - variance(self)- 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)