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