Struct average::Moments4 [−][src]
pub struct Moments4 { /* fields omitted */ }
Estimate the first N moments of a sequence of numbers a sequence of numbers ("population").
Methods
impl Moments4
[src]
impl Moments4
pub fn new() -> Moments4
[src]
pub fn new() -> Moments4
Create a new moments estimator.
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Determine whether the sample is empty.
pub fn len(&self) -> u64
[src]
pub fn len(&self) -> u64
Return the sample size.
pub fn mean(&self) -> f64
[src]
pub fn mean(&self) -> f64
Estimate the mean of the population.
Returns 0 for an empty sample.
pub fn central_moment(&self, p: usize) -> f64
[src]
pub fn central_moment(&self, p: usize) -> f64
Estimate the p
th central moment of the population.
pub fn standardized_moment(&self, p: usize) -> f64
[src]
pub fn standardized_moment(&self, p: usize) -> f64
Estimate the p
th standardized moment of the population.
pub fn sample_variance(&self) -> f64
[src]
pub fn sample_variance(&self) -> f64
Calculate the sample variance.
This is an unbiased estimator of the variance of the population.
pub fn sample_skewness(&self) -> f64
[src]
pub fn sample_skewness(&self) -> f64
Calculate the sample skewness.
pub fn sample_excess_kurtosis(&self) -> f64
[src]
pub fn sample_excess_kurtosis(&self) -> f64
Calculate the sample excess kurtosis.
pub fn add(&mut self, x: f64)
[src]
pub fn add(&mut self, x: f64)
Add an observation sampled from the population.
Trait Implementations
impl Debug for Moments4
[src]
impl Debug for Moments4
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Moments4
[src]
impl Clone for Moments4
fn clone(&self) -> Moments4
[src]
fn clone(&self) -> Moments4
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Merge for Moments4
[src]
impl Merge for Moments4
impl Default for Moments4
[src]
impl Default for Moments4
impl FromIterator<f64> for Moments4
[src]
impl FromIterator<f64> for Moments4
fn from_iter<T>(iter: T) -> Moments4 where
T: IntoIterator<Item = f64>,
[src]
fn from_iter<T>(iter: T) -> Moments4 where
T: IntoIterator<Item = f64>,
Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a f64> for Moments4
[src]
impl<'a> FromIterator<&'a f64> for Moments4