scipy.stats.mstats.

hdmedian#

scipy.stats.mstats.hdmedian(data, axis=-1, var=False)[source]#

Returns the Harrell-Davis estimate of the median along the given axis.

Deprecated since version 2.0.0: scipy.stats.mstats.hdmedian is deprecated as of SciPy 2.0.0 and will be removed, along with the scipy.stats.mstats namespace, in SciPy 2.4.0. For similar functionality, use scipy.stats.quantile with MArray(s) instead of NumPy masked array(s).

Parameters:
datandarray

Data array.

axisint, optional

Axis along which to compute the quantiles. If None, use a flattened array.

varbool, optional

Whether to return the variance of the estimate.

Returns:
hdmedianMaskedArray

The median values. If var=True, the variance is returned inside the masked array. E.g. for a 1-D array the shape change from (1,) to (2,).