This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _function_base_impl / _quantile

function

numpy.lib._function_base_impl:_quantile

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_function_base_impl.py :4700

Signature

def   _quantile ( arr : np.typing.ArrayLike quantiles : np.ndarray axis : int = -1 method : str = linear out : np.ndarray | None = None weights : np.typing.ArrayLike | None = None )  →  np.ndarray

Summary

Private function that doesn't support extended axis or keepdims. These methods are extended to this function using _ureduce See nanpercentile for parameter usage It computes the quantiles of the array for the given axis. A linear interpolation is performed based on the method.

Extended Summary

By default, the method is "linear" where alpha == beta == 1 which performs the 7th method of Hyndman&Fan. With "median_unbiased" we get alpha == beta == 1/3 thus the 8th method of Hyndman&Fan.

Aliases

  • numpy.lib._function_base_impl._quantile