pyinterp.core.Binning2DFloat64#
- class pyinterp.core.Binning2DFloat64(self, x: pyinterp.core.Axis, y: pyinterp.core.Axis, wgs: pyinterp.core.geodetic.Spheroid | None = None)#
Bases:
pybind11_objectCreate a 2D binning for grouping values into bins on a grid.
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.
wgs – WGS of the coordinate system used to manipulate geographic coordinates. If this parameter is not set, the handled coordinates will be considered as Cartesian coordinates. Otherwise,
xandyare considered to represents the longitudes and latitudes.
Attributes
Get the WGS system handled by this instance.
Get the bin centers for the X Axis of the grid.
Get the bin centers for the Y Axis of the grid.
Public Methods
clear(self)Reset the statistics and clear all bins.
count(self)Compute the count of points within 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[, simple])Push new samples into the defined bins.
skewness(self)Compute the skewness of values for points within each bin.
sum(self)Compute the sum of values for points within each bin.
sum_of_weights(self)Compute the sum of weights for points within each bin.
variance(self[, ddof])Compute the variance of values for points within each bin.
Special Methods
__copy__(self)Implement the shallow copy operation.
__getstate__(self, /)__iadd__(self, other)Override the default behavior of the
+=operator.__setstate__(self, arg0)