Trait average::Estimate
[−]
[src]
pub trait Estimate { fn add(&mut self, x: f64); fn estimate(&self) -> f64; }
Estimate a statistic of a sequence of numbers ("population").
Required Methods
fn add(&mut self, x: f64)
Add an observation sampled from the population.
fn estimate(&self) -> f64
Estimate the statistic of the population.