[][src]Trait agnes::stats::Mean

pub trait Mean {
    fn mean(&self) -> f64;
}

A trait for calculating the arithmetic mean of a field.

Required methods

fn mean(&self) -> f64

Compute the arithmetic mean of a field. Ignores missing values in the computation. If all values missing, returns 0.0.

Loading content...

Implementors

impl<DI> Mean for DI where
    DI: DataIndex + NaCount + Sum,
    <DI as Sum>::Output: AsPrimitive<f64>, 
[src]

Loading content...