Struct average::Moments4 [−][src]
pub struct Moments4 { /* fields omitted */ }
Expand description
Estimate the first N moments of a sequence of numbers (“population”).
Implementations
impl Moments4
[src]
impl Moments4
[src]pub fn central_moment(&self, p: usize) -> f64
[src]
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]
This is supported on crate features std
or libm
only.
pub fn standardized_moment(&self, p: usize) -> f64
[src]std
or libm
only.Estimate the p
th standardized moment of the population.
pub fn sample_variance(&self) -> f64
[src]
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]
This is supported on crate features std
or libm
only.
pub fn sample_skewness(&self) -> f64
[src]std
or libm
only.Calculate the sample skewness.
pub fn sample_excess_kurtosis(&self) -> f64
[src]
pub fn sample_excess_kurtosis(&self) -> f64
[src]Calculate the sample excess kurtosis.
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<'a> FromIterator<&'a f64> for Moments4
[src]
impl<'a> FromIterator<&'a f64> for Moments4
[src]impl FromIterator<f64> for Moments4
[src]
impl FromIterator<f64> for Moments4
[src]impl<'a> FromParallelIterator<&'a f64> for Moments4
[src]
impl<'a> FromParallelIterator<&'a f64> for Moments4
[src]rayon
only.fn from_par_iter<I>(par_iter: I) -> Moments4 where
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
[src]
fn from_par_iter<I>(par_iter: I) -> Moments4 where
I: IntoParallelIterator<Item = &'a f64>,
Self: Merge,
[src]Creates an instance of the collection from the parallel iterator par_iter
. Read more
impl FromParallelIterator<f64> for Moments4
[src]
impl FromParallelIterator<f64> for Moments4
[src]rayon
only.fn from_par_iter<I>(par_iter: I) -> Moments4 where
I: IntoParallelIterator<Item = f64>,
Self: Merge,
[src]
fn from_par_iter<I>(par_iter: I) -> Moments4 where
I: IntoParallelIterator<Item = f64>,
Self: Merge,
[src]Creates an instance of the collection from the parallel iterator par_iter
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Moments4
impl Send for Moments4
impl Sync for Moments4
impl Unpin for Moments4
impl UnwindSafe for Moments4
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
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_trunc(self) -> T
[src]Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
[src]
pub fn cast_nearest(self) -> T
[src]Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
[src]
pub fn cast_floor(self) -> T
[src]Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
[src]
pub fn try_cast_trunc(self) -> Result<T, Error>
[src]Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
[src]
pub fn try_cast_nearest(self) -> Result<T, Error>
[src]Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
[src]
pub fn try_cast_floor(self) -> Result<T, Error>
[src]Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
[src]
pub fn try_cast_ceil(self) -> Result<T, Error>
[src]Try convert the ceiling to an integer Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,