Trait basic_dsp::Stats[][src]

pub trait Stats<T> {
    fn empty() -> Self;
fn empty_vec(len: usize) -> ArrayVec<Self, {_: usize}>;
fn invalid() -> Self;
fn merge(stats: &[Self]) -> Self;
fn merge_cols(
        stats: &[ArrayVec<Self, {_: usize}>]
    ) -> ArrayVec<Self, {_: usize}>;
fn add(&mut self, elem: T, index: usize); }
Expand description

Operations on statistics.

Required methods

Creates an empty statistics struct.

Creates a vector of empty statistics structs.

Creates a statistics struct which resembles an invalid result.

Merges several statistics into one.

Merges several vectors of statistics into one vector.

Adds a new value to the statistics, all statistic fields get updated.

Implementors