Struct rolling_stats::Stats
source · 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,
/* private fields */
}
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