pyinterp.Binning2D.variable

pyinterp.Binning2D.variable#

Binning2D.variable(statistics: str = 'mean') NDArray2D[source]#

Get the regular grid containing the calculated statistics.

Return the grid with the requested statistical variable computed from the binned data.

Parameters:

statistics

The statistics to compute. The following statistics are available:

  • count : compute the count of points within each bin.

  • kurtosis : compute the kurtosis of values for points within each bin.

  • max : compute the maximum of values for point within each bin.

  • mean : compute the mean of values for points within each bin.

  • min : compute the minimum of values for points within each bin.

  • skewness : compute the skewness within each bin.

  • sum : compute the sum of values for points within each bin.

  • sum_of_weights : compute the sum of weights within each bin.

  • variance : compute the variance within each bin.

Returns:

The dataset representing the calculated statistical variable.