bundles / scipy latest / scipy / stats / _mstats_extras / hdmedian
function
scipy.stats._mstats_extras:hdmedian
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_mstats_extras.py:124
Signature
def hdmedian(data, axis = -1, var = False)Summary
Returns the Harrell-Davis estimate of the median along the given axis.
Parameters
data: ndarrayData array.
axis: int, optionalAxis along which to compute the quantiles. If None, use a flattened array.
var: bool, optionalWhether to return the variance of the estimate.
Returns
hdmedian: MaskedArrayThe 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,).
Aliases
scipy.stats._mstats_extras.hdmedian