pyinterp.Binning1DFloat64

Contents

pyinterp.Binning1DFloat64#

class pyinterp.Binning1DFloat64(self, x: pyinterp.core.Axis, range: tuple[float, float] | None = None)#

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

spheroid

Get the spheroid used for geographic coordinates.

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

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[, shape, writable, shape, ...])

Push new samples into the defined bins.

range(self)

Get the range of the binning.

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)

Get the state of the instance for pickling.

__new__(*args, **kwargs)

__setstate__(self, state, ...[, shape, order])

Set the state of the instance from pickling.