statsmodels.robust.norms.HuberT.rho

HuberT.rho(z)[source]

The robust criterion function for Huber’s t.

Parameters
zarray_like

1d array

Returns
rhondarray

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

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