Trait probability::distribution::Variance [] [src]

pub trait Variance: Mean {
    fn variance(&self) -> f64;

    fn deviation(&self) -> f64 { ... }
    fn var(&self) -> f64 { ... }
    fn sd(&self) -> f64 { ... }
}

A distribution capable of computing the variance.

The trait is applicable when the variance exists, that is, finite.

Required Methods

fn variance(&self) -> f64

Compute the variance.

Provided Methods

fn deviation(&self) -> f64

Compute the standard deviation.

fn var(&self) -> f64

Compute the variance.

The function is an alias for variance.

fn sd(&self) -> f64

Compute the standard deviation.

The function is an alias for deviation.

Implementors