pub trait Statistics<T> {
// Required methods
fn mean(self) -> Option<T>;
fn median(self) -> Option<T>;
fn variance(self) -> Option<T>;
fn std(self) -> Option<T>;
fn float_max(self) -> T;
fn float_min(self) -> T;
fn difference(self) -> T;
fn zero_crossings(self) -> usize;
fn peak_average_ratio(self) -> Option<T>;
}Expand description
NOTE: if there are any NaNs in the Iterator then this trait will prduce unstable results
Required Methods§
fn mean(self) -> Option<T>
fn median(self) -> Option<T>
fn variance(self) -> Option<T>
fn std(self) -> Option<T>
fn float_max(self) -> T
fn float_min(self) -> T
fn difference(self) -> T
fn zero_crossings(self) -> usize
fn peak_average_ratio(self) -> Option<T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".