pyinterp.core.Histogram2DFloat32¶
- class pyinterp.core.Histogram2DFloat32(self, x: pyinterp.core.Axis, y: pyinterp.core.Axis, bins: int | None = None)¶
Bases:
pybind11_object
Group a number of more or less continuous values into a smaller number of “bins” located on a grid.
- Parameters:
x – Definition of the bin centers for the X axis of the grid.
y – Definition of the bin centers for the Y axis of the grid.
bins – Maximum number of bins per pixel to use to calculate the histogram. Default is None, which means that the number of bins is computed automatically.
Attributes
Gets the bin centers for the X Axis of the grid.
Gets the bin centers for the Y Axis of the grid.
Public Methods
clear
(self)Reset the statistics.
count
(self)Compute the count of points within each bin.
histograms
(self)Compute the histograms for each bin.
kurtosis
(self)Compute the kurtosis of values for points within each bin.
max
(self)Compute the maximum of values for points within each bin.
mean
(self)Compute the mean of values for points within each bin.
min
(self)Compute the minimum of values for points within each bin.
push
(self, x, y, z)Push new samples into the defined bins.
quantile
(self[, q])Compute the quantile of points within each bin.
skewness
(self)Compute the skewness of values for points within each bin.
sum_of_weights
(self)Compute the sum of weights for points within each bin.
variance
(self)Compute the variance of values for points within each bin.
Protected Methods
Special Methods
__copy__
(self)Implements the shallow copy operation.
__getstate__
(self)__iadd__
(self, other)Overrides the default behavior of the
+=
operator.__setstate__
(self, arg0)