pyinterp.core.Binning1DFloat64

class pyinterp.core.Binning1DFloat64(self, x: pyinterp.core.Axis)

Bases: Binning2DFloat64

Create a 1D binning for grouping values into bins on a vector.

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

Parameters:
  • x – Definition of the bin centers for the X Axis.

  • range – Range of the binning. If not provided, range is simply (x.min_value(), x.max_value()).

Attributes

wgs

Get the WGS system handled by this instance.

x

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

y

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

Public Methods

push(self, x, z[, weights])

Push new samples into the defined bins.

range(self)

Get the range of the binning.

Special Methods

__getstate__(self, /)

__setstate__(self, arg0)

Inherited 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.

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.