statsmodels.robust.norms.TrimmedMean.weights¶
- TrimmedMean.weights(z)[source]¶
用于IRLS算法的加权最小修剪均值函数
psi 函数按 z 缩放
- Parameters:¶
- zarray_like
一维数组
- Returns:¶
- weights
ndarray weights(z) = 1 对于 |z| <= c
weights(z) = 0 对于 |z| > c
- weights
Last update:
Oct 16, 2024