Struct average::Skewness
[−]
[src]
pub struct Skewness { /* fields omitted */ }
Estimate the arithmetic mean, the variance and the skewness of a sequence of numbers ("population").
This can be used to estimate the standard error of the mean.
Methods
impl Skewness
[src]
fn new() -> Skewness
Create a new skewness estimator.
fn add(&mut self, x: f64)
Add an observation sampled from the population.
fn is_empty(&self) -> bool
Determine whether the sample is empty.
fn mean(&self) -> f64
Estimate the mean of the population.
Returns 0 for an empty sample.
fn len(&self) -> u64
Return the sample size.
fn sample_variance(&self) -> f64
Calculate the sample variance.
This is an unbiased estimator of the variance of the population.
fn population_variance(&self) -> f64
Calculate the population variance of the sample.
This is a biased estimator of the variance of the population.
fn error_mean(&self) -> f64
Estimate the standard error of the mean of the population.
fn skewness(&self) -> f64
Estimate the skewness of the population.
fn merge(&mut self, other: &Skewness)
Merge another sample into this one.
Trait Implementations
impl Debug for Skewness
[src]
impl Clone for Skewness
[src]
fn clone(&self) -> Skewness
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl FromIterator<f64> for Skewness
[src]
fn from_iter<T>(iter: T) -> Skewness where
T: IntoIterator<Item = f64>,
T: IntoIterator<Item = f64>,
Creates a value from an iterator. Read more