Skip to main content

winsorized_mean

Function winsorized_mean 

Source
pub fn winsorized_mean(values: &[f64], proportion: f64) -> Option<f64>
Expand description

Winsorized mean: clamp the lowest/highest proportion of the data to the boundary values (rather than dropping them), then average. None if empty or out of range.