Skip to main content

trim_mean

Function trim_mean 

Source
pub fn trim_mean(x: &[f64], proportion: f64) -> Result<f64, ErrorsJSL>
Expand description

The mean after removing the ⌊proportion · n⌋ smallest and largest values (SciPy’s trim_mean). With proportion = 0 it is the mean; as it approaches ½ it approaches the median.