pyinterp.Histogram2D.variable#
- Histogram2D.variable(statistics: str = 'mean', *args: float) NDArray2D[source]#
Get the regular grid containing the calculated statistics.
Return the grid with the requested statistical variable computed from the histogram 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 of values for pointsvariance: compute the variance within each bin.
args – Additional arguments to pass to the statistics function. For example,
quantilerequires aqargument that specifies the quantile to compute.
- Returns:
The dataset representing the calculated statistical variable.