test::stats::winsorize - Rust
Description: API documentation for the Rust `winsorize` fn in crate `test`.
Keywords: rust, rustlang, rust-lang, winsorize

# [−][src]Function test::stats::winsorize

    pub fn winsorize(samples: &mut [f64], pct: f64)

🔬 This is a nightly-only experimental API. (`test`)

Winsorize a set of samples, replacing values above the `100-pct` percentile and below the `pct` percentile with those percentiles themselves. This is a way of minimizing the effect of outliers, at the cost of biasing the sample. It differs from trimming in that it does not change the number of samples, just changes the values of those that are outliers.

See: http://en.wikipedia.org/wiki/Winsorising