pub struct WindowStats {
pub n: usize,
pub mean: f32,
pub std: f32,
pub min: f32,
pub max: f32,
pub latest: f32,
pub family: MeanType,
pub fam_center: f32,
pub fam_spread: f32,
}Expand description
A smoothed reading WITH its own error bar: how many readings it averages how much they spread — the race’s number is a mean of K small samples.
Fields§
§n: usizeReadings behind mean (buffer length, ≤ the smoothing window).
mean: f32Their mean — the readable smoothed level, and the center the ranking score
computed from. WindowStats::score is the value the ranking uses.
std: f32Population std of the readings: their step-to-step spread (σ in the logs).
min: f32Extreme readings in the window — the readable form of std (e.g. one
500 among fizzles).
max: f32Largest reading in the window.
latest: f32The buffer’s most recent value (see RollingBuffer::last): the reading
that describes the weights the run actually ended
family: MeanTypeThe family Self::fam_center / Self::fam_spread are measured
(set_fitness_mean_type).
fam_center: f32The window’s centre IN family’s space — the value Self::score restores.
fam_spread: f32The window’s spread about fam_center, in the same space: the std
transformed readings, or the scaled MAD for MeanType::Median.