statsmodels.robust.norms.HuberT.rho

method

HuberT.rho(z)[source]

The robust criterion function for Huber’s t.

Parameters
zarray-like

1d array

Returns
rhoarray

rho(z) = .5*z**2 for |z| <= t

rho(z) = |z|*t - .5*t**2 for |z| > t