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, }

Statistics about numeric data

Fields

Sum of all values

How many numbers have been considered for the stats

Average value

Root-mean-square or rms over all values.

The smallest value.

The index of the smallest value.

The largest value.

The index of the largest value.

Trait Implementations

impl<T: Copy> Copy for Statistics<T>
[src]

impl<T: Clone> Clone for Statistics<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for Statistics<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Debug> Debug for Statistics<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Stats<T> for Statistics<T> where
    T: RealNumber
[src]

Creates an empty statistics struct.

Creates a statistics struct which resembles an invalid result.

Merges several statistics into one.

Merges several vectors of statistics into one vector.

Creates a vector of empty statistics structs.

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

impl<T> Stats<Complex<T>> for Statistics<Complex<T>> where
    T: RealNumber
[src]

Creates an empty statistics struct.

Creates a statistics struct which resembles an invalid result.

Merges several statistics into one.

Merges several vectors of statistics into one vector.

Creates a vector of empty statistics structs.

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

impl<T> PreciseStats<T> for Statistics<T> where
    T: RealNumber
[src]

Adds a new values to the statistics using the Kahan summation algorithm described here: https://en.wikipedia.org/wiki/Kahan_summation_algorithm Read more

impl<T> PreciseStats<Complex<T>> for Statistics<Complex<T>> where
    T: RealNumber
[src]

Adds a new values to the statistics using the Kahan summation algorithm described here: https://en.wikipedia.org/wiki/Kahan_summation_algorithm Read more

Auto Trait Implementations

impl<T> Send for Statistics<T> where
    T: Send

impl<T> Sync for Statistics<T> where
    T: Sync