pyinterp.core.Binning2DFloat32#

class pyinterp.core.Binning2DFloat32(self, x: pyinterp.core.Axis, y: pyinterp.core.Axis, wgs: Optional[pyinterp.core.geodetic.System] = None)#

Bases: pybind11_builtins.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.

  • 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, x and y are considered to represents the longitudes and latitudes.

Attributes

wgs

Gets the WGS system handled by this instance.

x

Gets the bin centers for the X Axis of the grid.

y

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.

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)

Implements the shallow copy operation.

__getstate__(self)

__iadd__(self, other)

Overrides the default behavior of the += operator.

__setstate__(self, arg0)