Struct average::Moments4 [−][src]
pub struct Moments4 { /* fields omitted */ }
Estimate the first N moments of a sequence of numbers (“population”).
Implementations
impl Moments4
[src]
impl Moments4
[src]pub fn new() -> Moments4
[src]
Create a new moments estimator.
pub fn is_empty(&self) -> bool
[src]
Determine whether the sample is empty.
pub fn len(&self) -> u64
[src]
Return the sample size.
pub fn mean(&self) -> f64
[src]
Estimate the mean of the population.
Returns 0 for an empty sample.
pub fn central_moment(&self, p: usize) -> f64
[src]
Estimate the p
th central moment of the population.
pub fn standardized_moment(&self, p: usize) -> f64
[src]
Estimate the p
th standardized moment of the population.
pub fn sample_variance(&self) -> f64
[src]
Calculate the sample variance.
This is an unbiased estimator of the variance of the population.
pub fn sample_skewness(&self) -> f64
[src]
Calculate the sample skewness.
pub fn sample_excess_kurtosis(&self) -> f64
[src]
Calculate the sample excess kurtosis.
pub fn add(&mut self, x: f64)
[src]
Add an observation sampled from the population.
Trait Implementations
impl<'de> Deserialize<'de> for Moments4
[src]
impl<'de> Deserialize<'de> for Moments4
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> FromIterator<&'a f64> for Moments4
[src]
impl<'a> FromIterator<&'a f64> for Moments4
[src]fn from_iter<T>(iter: T) -> Moments4 where
T: IntoIterator<Item = &'a f64>,
[src]
T: IntoIterator<Item = &'a f64>,
impl FromIterator<f64> for Moments4
[src]
impl FromIterator<f64> for Moments4
[src]fn from_iter<T>(iter: T) -> Moments4 where
T: IntoIterator<Item = f64>,
[src]
T: IntoIterator<Item = f64>,
impl<'a> FromParallelIterator<&'a f64> for Moments4
[src]
impl<'a> FromParallelIterator<&'a f64> for Moments4
[src]fn from_par_iter<I>(par_iter: I) -> Moments4 where
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
[src]
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
impl FromParallelIterator<f64> for Moments4
[src]
impl FromParallelIterator<f64> for Moments4
[src]fn from_par_iter<I>(par_iter: I) -> Moments4 where
I: IntoParallelIterator<Item = f64>,
Self: Merge,
[src]
I: IntoParallelIterator<Item = f64>,
Self: Merge,
Auto Trait Implementations
impl RefUnwindSafe for Moments4
impl RefUnwindSafe for Moments4
impl UnwindSafe for Moments4
impl UnwindSafe for Moments4
Blanket Implementations
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
[src]
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
[src]pub fn cast_trunc(self) -> T
[src]
pub fn cast_nearest(self) -> T
[src]
pub fn cast_floor(self) -> T
[src]
pub fn cast_ceil(self) -> T
[src]
pub fn try_cast_trunc(self) -> Result<T, Error>
[src]
pub fn try_cast_nearest(self) -> Result<T, Error>
[src]
pub fn try_cast_floor(self) -> Result<T, Error>
[src]
pub fn try_cast_ceil(self) -> Result<T, Error>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]