pyinterp.core.Binning2DFloat64

class pyinterp.core.Binning2DFloat64

Bases: pybind11_builtins.pybind11_object

Group a number of more or less continuous values into a smaller number of “bins” located on a grid.

__init__(self: pyinterp.core.Binning2DFloat64, x: pyinterp.core.Axis, y: pyinterp.core.Axis, wgs: Optional[pyinterp.core.geodetic.System] = None) None

Default constructor

Parameters
  • x (pyinterp.core.Axis) – Definition of the bin centers for the X axis of the grid.

  • y (pyinterp.core.Axis) – Definition of the bin centers for the Y axis of the grid.

  • wgs (pyinterp.geodetic.System, optional) – 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.

Methods

Binning2DFloat64.clear(self)

Reset the statistics

Binning2DFloat64.count(self)

Compute the count of points within each bin.

Binning2DFloat64.kurtosis(self)

Compute the kurtosis of values for points within each bin.

Binning2DFloat64.max(self)

Compute the maximum of values for points within each bin.

Binning2DFloat64.mean(self)

Compute the mean of values for points within each bin.

Binning2DFloat64.min(self)

Compute the minimum of values for points within each bin.

Binning2DFloat64.push(self, x, y, z[, simple])

Push new samples into the defined bins.

Binning2DFloat64.skewness(self)

Compute the skewness of values for points within each bin.

Binning2DFloat64.sum(self)

Compute the sum of values for points within each bin.

Binning2DFloat64.sum_of_weights(self)

Compute the sum of weights for points within each bin.

Binning2DFloat64.variance(self[, ddof])

Compute the variance of values for points within each bin.

Binning2DFloat64.__getstate__(self)

Binning2DFloat64.__iadd__(self, arg0)

Binning2DFloat64.__setstate__(self, arg0)

Attributes

Binning2DFloat64.wgs

Gets the WGS system handled by this instance.

Binning2DFloat64.x

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

Binning2DFloat64.y

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