Trait AggFunc

Source
pub trait AggFunc {
    type T;

    // Required methods
    fn min(&self) -> Self::T;
    fn max(&self) -> Self::T;
    fn sum(&self) -> Self::T;
    fn mean(&self) -> Self::T;
    fn var(&self) -> Self::T
       where Self::T: Sub<Self::T, Output = Self::T> + Pow<Self::T, Output = Self::T>;
    fn std(&self) -> Self::T
       where Self::T: Sub<Self::T, Output = Self::T> + Pow<Self::T, Output = Self::T> + From<f32>;
}

Required Associated Types§

Source

type T

Required Methods§

Source

fn min(&self) -> Self::T

Source

fn max(&self) -> Self::T

Source

fn sum(&self) -> Self::T

Source

fn mean(&self) -> Self::T

Source

fn var(&self) -> Self::T
where Self::T: Sub<Self::T, Output = Self::T> + Pow<Self::T, Output = Self::T>,

Source

fn std(&self) -> Self::T
where Self::T: Sub<Self::T, Output = Self::T> + Pow<Self::T, Output = Self::T> + From<f32>,

Implementations on Foreign Types§

Source§

impl<E> AggFunc for [E]
where for<'l> E: PartialOrd + Copy + Div<Output = E> + 'static + Sum<&'l E>, usize: AsPrimitive<E>,

Source§

type T = E

Source§

fn min(&self) -> Self::T

Source§

fn max(&self) -> Self::T

Source§

fn sum(&self) -> Self::T

Source§

fn mean(&self) -> Self::T

Source§

fn var(&self) -> Self::T
where Self::T: Sub<Self::T, Output = Self::T> + Pow<Self::T, Output = Self::T>,

Source§

fn std(&self) -> Self::T
where Self::T: Sub<Self::T, Output = Self::T> + Pow<Self::T, Output = Self::T> + From<f32>,

Implementors§