Trait brassfibre::prelude::NNumericAggregation
[−]
[src]
pub trait NNumericAggregation { type Coerced; fn mean(&self) -> Self::Coerced; fn var(&self) -> Self::Coerced; fn unbiased_var(&self) -> Self::Coerced; fn std(&self) -> Self::Coerced; fn unbiased_std(&self) -> Self::Coerced; }
Aggregation methods for numeric types.
Associated Types
type Coerced
Required Methods
fn mean(&self) -> Self::Coerced
Return mean of contained values.
fn var(&self) -> Self::Coerced
Return variance of contained values.
fn unbiased_var(&self) -> Self::Coerced
Return unbiased variance of contained values.
fn std(&self) -> Self::Coerced
Return standard deviation of contained values.
fn unbiased_std(&self) -> Self::Coerced
Return unbiased standard deviation of contained values.
Implementors
impl<T> NumericAggregation for NullVec<T> where
T: Clone + Zero + Add<T> + Sub<T> + Div<T> + ToPrimitive + NullStorable,impl NumericAggregation for Array