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.
Implementations
impl Skewness
[src]
impl Skewness
[src]pub fn new() -> Skewness
[src]
Create a new skewness estimator.
pub fn is_empty(&self) -> bool
[src]
Determine whether the sample is empty.
pub fn mean(&self) -> f64
[src]
Estimate the mean of the population.
Returns 0 for an empty sample.
pub fn len(&self) -> u64
[src]
Return the sample size.
pub fn sample_variance(&self) -> f64
[src]
Calculate the sample variance.
This is an unbiased estimator of the variance of the population.
pub fn population_variance(&self) -> f64
[src]
Calculate the population variance of the sample.
This is a biased estimator of the variance of the population.
pub fn error_mean(&self) -> f64
[src]
Estimate the standard error of the mean of the population.
pub fn skewness(&self) -> f64
[src]
Estimate the skewness of the population.
Trait Implementations
impl<'de> Deserialize<'de> for Skewness
[src]
impl<'de> Deserialize<'de> for Skewness
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> FromIterator<&'a f64> for Skewness
[src]
impl<'a> FromIterator<&'a f64> for Skewness
[src]fn from_iter<T>(iter: T) -> Skewness where
T: IntoIterator<Item = &'a f64>,
[src]
T: IntoIterator<Item = &'a f64>,
impl FromIterator<f64> for Skewness
[src]
impl FromIterator<f64> for Skewness
[src]fn from_iter<T>(iter: T) -> Skewness where
T: IntoIterator<Item = f64>,
[src]
T: IntoIterator<Item = f64>,
impl<'a> FromParallelIterator<&'a f64> for Skewness
[src]
impl<'a> FromParallelIterator<&'a f64> for Skewness
[src]fn from_par_iter<I>(par_iter: I) -> Skewness where
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
[src]
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
impl FromParallelIterator<f64> for Skewness
[src]
impl FromParallelIterator<f64> for Skewness
[src]fn from_par_iter<I>(par_iter: I) -> Skewness where
I: IntoParallelIterator<Item = f64>,
Self: Merge,
[src]
I: IntoParallelIterator<Item = f64>,
Self: Merge,
Auto Trait Implementations
impl RefUnwindSafe for Skewness
impl RefUnwindSafe for Skewness
impl UnwindSafe for Skewness
impl UnwindSafe for Skewness
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]