Struct basic_dsp_vector::Statistics [−][src]
#[repr(C)]pub struct Statistics<T> { pub sum: T, pub count: usize, pub average: T, pub rms: T, pub min: T, pub min_index: usize, pub max: T, pub max_index: usize, }
Expand description
Statistics about numeric data
Fields
sum: TSum of all values
count: usizeHow many numbers have been considered for the stats
average: TAverage value
rms: TRoot-mean-square or rms over all values.
min: TThe smallest value.
min_index: usizeThe index of the smallest value.
max: TThe largest value.
max_index: usizeThe index of the largest value.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Merges several statistics into one.
Merges several vectors of statistics into one vector.
Merges several statistics into one.
Merges several vectors of statistics into one vector.
Auto Trait Implementations
impl<T> RefUnwindSafe for Statistics<T> where
T: RefUnwindSafe, impl<T> Send for Statistics<T> where
T: Send, impl<T> Sync for Statistics<T> where
T: Sync, impl<T> Unpin for Statistics<T> where
T: Unpin, impl<T> UnwindSafe for Statistics<T> where
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more