Struct rolling_stats::Stats [−][src]
pub struct Stats<T: Float + Zero + One + AddAssign + FromPrimitive + PartialEq + Debug> {
pub min: T,
pub max: T,
pub mean: T,
pub std_dev: T,
pub count: usize,
// some fields omitted
}
Expand description
Stats object calculates continuous min/max/mean/deviation for tracking of time varying statistics.
See: https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford’s_Online_algorithm for Details of the underlying algorithm.
Fields
min: T
Minimum value
max: T
Maximum value
mean: T
Mean of sample set
std_dev: T
Standard deviation of sample
count: usize
Number of values collected
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Stats<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Stats<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more