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
binsis an int, it represents the number of bins. Ifbinsis anndarray, it represents a bin edges.
Returns: (hist, bin_edges)wherehistis acupy.ndarraystoring the values of the histogram, andbin_edgesis acupy.ndarraystoring the bin edges.Return type: Warning
This function may synchronize the device.
See also