[][src]Trait micromath::statistics::trim::Trim

pub trait Trim {
    type Result: Copy + Into<f32>;
    fn trim_at(&self, threshold: f32) -> Iter<Self::Result>;

    fn trim(&self) -> Iter<Self::Result> { ... }
}

Iterate over the given input after culling outliers.

Associated Types

type Result: Copy + Into<f32>

Result type

Loading content...

Required methods

Important traits for Iter<'a, N>
fn trim_at(&self, threshold: f32) -> Iter<Self::Result>

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

Loading content...

Provided methods

Important traits for Iter<'a, N>
fn trim(&self) -> Iter<Self::Result>

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

Loading content...

Implementors

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

type Result = N

Loading content...