pyinterp.Binning2D.variable

Binning2D.variable(statistics: str = 'mean') numpy.ndarray[source]

Gets the regular grid containing the calculated statistics.

Parameters

statistics (str or iterable, optional) –

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 weigths within each bin.

  • variance : compute the variance within each bin.

Returns

The dataset representing the calculated statistical variable.

Return type

numpy.ndarray