This is documentation for an old release of SciPy (version 0.12.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Compute a multidimensional binned statistic for a set of data.
This is a generalization of a histogramdd function. A histogram divides the space into bins, and returns the count of the number of points in each bin. This function allows the computation of the sum, mean, median, or other statistic of the values within each bin.
New in version 0.11.0.
Parameters : | sample : array_like
values : array_like
statistic : string or callable, optional
bins : sequence or int, optional
range : sequence, optional
|
---|---|
Returns : | statistic : ndarray, shape(nx1, nx2, nx3,...)
edges : list of ndarrays
binnumber : 1-D ndarray of ints
|
See also
np.histogramdd, binned_statistic, binned_statistic_2d