cupy.histogram¶
-
cupy.
histogram
(x, bins=10)[source]¶ Computes the histogram of a set of data.
Parameters: - x (cupy.ndarray) – Input array.
- bins (int or cupy.ndarray) – If
bins
is an int, it represents the number of bins. Ifbins
is anndarray
, it represents a bin edges.
Returns: (hist, bin_edges)
wherehist
is acupy.ndarray
storing the values of the histogram, andbin_edges
is acupy.ndarray
storing the bin edges.Return type: See also