pub fn winsorize(samples: &mut [f64], pct: f64)
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.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).