Trait basic_dsp_vector::Stats[][src]

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

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