dask.array.percentile#
- dask.array.percentile(a, q, method='linear', internal_method='default', **kwargs)[source]#
Approximate percentile of 1-D array
- Parameters:
- aArray
- qarray_like of float
Percentile or sequence of percentiles to compute, which must be between 0 and 100 inclusive.
- method{âlinearâ, âlowerâ, âhigherâ, âmidpointâ, ânearestâ}, optional
The interpolation method to use when the desired percentile lies between two data points
i < j.âlinearâ:
i + (j - i) * fraction, wherefractionis the fractional part of the index surrounded byiandj.âlowerâ:
i.âhigherâ:
j.ânearestâ:
iorj, whichever is nearest.âmidpointâ:
(i + j) / 2.
Changed in version 2022.1.0: This argument was previously called âinterpolationâ
- internal_method{âdefaultâ, âdaskâ, âtdigestâ}, optional
What internal method to use. By default will use daskâs internal custom algorithm (
'dask'). If set to'tdigest'will use tdigest for floats and ints if method is linear and fallback to'dask'otherwise.Changed in version 2022.1.0: This argument was previously called âmethodâ.
- interpolationstr, optional
Deprecated name for the method keyword argument.
Deprecated since version 2022.1.0.
See also
numpy.percentileNumpyâs equivalent Percentile function