pub trait Trim {
    type Result: Copy + Into<f32>;

    // Required method
    fn trim_at(&self, threshold: f32) -> Iter<'_, Self::Result> ;

    // Provided method
    fn trim(&self) -> Iter<'_, Self::Result>  { ... }
}
Available on crate feature statistics only.
Expand description

Iterate over the given input after culling outliers.

Required Associated Types§

source

type Result: Copy + Into<f32>

Result type

Required Methods§

source

fn trim_at(&self, threshold: f32) -> Iter<'_, Self::Result>

Trim this collection (cull outliers) at the specified number of standard deviations.

Provided Methods§

source

fn trim(&self) -> Iter<'_, Self::Result>

Trim this collection (cull outliers) at the default threshold of 2 standard deviations.

Implementations on Foreign Types§

source§

impl<N> Trim for &[N]where N: Copy, f32: From<N>,

§

type Result = N

source§

fn trim_at(&self, threshold: f32) -> Iter<'_, Self::Result>

Implementors§