Hampel.
psi
The psi function for Hampel’s estimator
The analytic derivative of rho
psi(z) = a*sign(z) for a < |z| <= b
psi(z) = a*sign(z)*(c - |z|)/(c-b) for b < |z| <= c
psi(z) = 0 for |z| > c
statsmodels.robust.norms.Hampel
statsmodels.robust.norms.Hampel.psi_deriv