statsmodels.robust.norms.TrimmedMean.weights#
- TrimmedMean.weights(z)[source]#
Least trimmed mean weighting function for the IRLS algorithm
The psi function scaled by z.
\[\begin{split}w(z) = \begin{cases} 1 & \text{for } |z| \le c \\ 0 & \text{for } |z| > c \end{cases}\end{split}\]- Parameters:
- zarray_like
1d array
- Returns:
- weights
ndarray The value of the weighting function.
- weights