[][src]Trait agnes::stats::Variance

pub trait Variance {
    fn var(&self) -> f64;
fn varp(&self) -> f64; fn stdev(&self) -> f64 { ... }
fn stdevp(&self) -> f64 { ... } }

A trait for computing the variance and standard deviation of values in a field.

Required methods

fn var(&self) -> f64

Computes sample variance of this field. Ignores missing values in this computation. If all values are missing, returns 0.0.

fn varp(&self) -> f64

Computes population variance of this field. Ignores missing values in this computation. If all values are missing, returns 0.0.

Loading content...

Provided methods

fn stdev(&self) -> f64

Computes sample standard deviation of this field. Ignores missing values in this computation. If all values are missing, returns 0.0.

fn stdevp(&self) -> f64

Computes population standard deviation of this field. Ignores missing values in this computation. If all values are missing, returns 0.0.

Loading content...

Implementors

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

fn stdev(&self) -> f64[src]

fn stdevp(&self) -> f64[src]

Loading content...