cupy.quantile#
- cupy.quantile(a, q, axis=None, out=None, overwrite_input=False, method='linear', keepdims=False, *, interpolation=None)[source]#
Computes the q-th quantile of the data along the specified axis.
- Parameters:
a (cupy.ndarray) – Array for which to compute quantiles.
q (float, tuple of floats or cupy.ndarray) – Quantiles to compute in the range between 0 and 1 inclusive.
axis (int or tuple of ints) – Along which axis or axes to compute the quantiles. The flattened array is used by default.
out (cupy.ndarray) – Output array.
overwrite_input (bool) – If True, then allow the input array a to be modified by the intermediate calculations, to save memory. In this case, the contents of the input a after this function completes is undefined.
method (str) – Interpolation method when a quantile lies between two data points.
linear
interpolation is used by default. Supported interpolations arelower
,higher
,midpoint
,nearest
andlinear
.keepdims (bool) – If
True
, the axis is remained as an axis of size one.interpolation (str) – Deprecated name for the method keyword argument.
- Returns:
The quantiles of
a
, along the axis if specified.- Return type:
See also