Trait ScalarDistribution

Source
pub trait ScalarDistribution {
    // Required methods
    fn mean(&self) -> f64;
    fn variance(&self) -> f64;
    fn std_dev(&self) -> f64;
}
Expand description

Represents a generic scalar distribution

Required Methods§

Source

fn mean(&self) -> f64

Computes the mean of the distribution

Source

fn variance(&self) -> f64

Computes the variance of the distribution

Source

fn std_dev(&self) -> f64

Computes the standard deviation of the distribution

Implementors§