Struct basic_dsp::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: T
Sum of all values
count: usize
How many numbers have been considered for the stats
average: T
Average value
rms: T
Root-mean-square or rms over all values.
min: T
The smallest value.
min_index: usize
The index of the smallest value.
max: T
The largest value.
max_index: usize
The 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 !=
.
Creates an empty statistics struct.
Creates a statistics struct which resembles an invalid result.
Merges several statistics into one.
pub fn merge_cols(
stats: &[ArrayVec<Statistics<Complex<T>>, {_: usize}>]
) -> ArrayVec<Statistics<Complex<T>>, {_: usize}>
[src]
pub fn merge_cols(
stats: &[ArrayVec<Statistics<Complex<T>>, {_: usize}>]
) -> ArrayVec<Statistics<Complex<T>>, {_: usize}>
[src]Merges several vectors of statistics into one vector.
Creates a vector of empty statistics structs.
Creates an empty statistics struct.
Creates a statistics struct which resembles an invalid result.
Merges several statistics into one.
pub fn merge_cols(
stats: &[ArrayVec<Statistics<T>, {_: usize}>]
) -> ArrayVec<Statistics<T>, {_: usize}>
[src]
pub fn merge_cols(
stats: &[ArrayVec<Statistics<T>, {_: usize}>]
) -> ArrayVec<Statistics<T>, {_: usize}>
[src]Merges several vectors of statistics into one vector.
Creates a vector of empty statistics structs.
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