Trait average::Estimate

source ·
pub trait Estimate {
    // Required methods
    fn add(&mut self, x: f64);
    fn estimate(&self) -> f64;
}
Expand description

Estimate a statistic of a sequence of numbers (“population”).

Required Methods§

source

fn add(&mut self, x: f64)

Add an observation sampled from the population.

source

fn estimate(&self) -> f64

Estimate the statistic of the population.

Implementors§

source§

impl Estimate for Kurtosis

source§

impl Estimate for Max

source§

impl Estimate for Mean

source§

impl Estimate for Min

source§

impl Estimate for Quantile

Available on crate features std or libm only.
source§

impl Estimate for Skewness

source§

impl Estimate for Variance