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 bidimensional binned statistic for a set of data.
This is a generalization of a histogram2d 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 : | x : (N,) array_like
y : (M,) array_like
values : (N,) array_like
statistic : string or callable, optional
bins : int or [int, int] or array-like or [array, array], optional
range : (2,2) array_like, optional
|
---|---|
Returns : | statistic : (nx, ny) ndarray
xedges : (nx + 1) ndarray
yedges : (ny + 1) ndarray
binnumber : 1-D ndarray of ints
|
See also