statsmodels.robust.norms.TrimmedMean.rho

method

TrimmedMean.rho(z)[source]

The robust criterion function for least trimmed mean.

Parameters
zarray-like

1d array

Returns
rhoarray

rho(z) = (1/2.)*z**2 for |z| <= c

rho(z) = 0 for |z| > c