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
[src]
Create a new skewness estimator.
fn is_empty(&self) -> bool
[src]
Determine whether the sample is empty.
fn mean(&self) -> f64
[src]
Estimate the mean of the population.
Returns 0 for an empty sample.
fn len(&self) -> u64
[src]
Return the sample size.
fn sample_variance(&self) -> f64
[src]
Calculate the sample variance.
This is an unbiased estimator of the variance of the population.
fn population_variance(&self) -> f64
[src]
Calculate the population variance of the sample.
This is a biased estimator of the variance of the population.
fn error_mean(&self) -> f64
[src]
Estimate the standard error of the mean of the population.
fn skewness(&self) -> f64
[src]
Estimate the skewness of the population.
Trait Implementations
impl Debug for Skewness
[src]
impl Clone for Skewness
[src]
fn clone(&self) -> Skewness
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Skewness
[src]
impl Estimate for Skewness
[src]
fn add(&mut self, x: f64)
[src]
Add an observation sampled from the population.
fn estimate(&self) -> f64
[src]
Estimate the statistic of the population.