fn update_avg(words: &mut [f64], sample: f64)
avg’s update: sums directly until the running sum would overflow, then switches to an incremental mean, whose flag is the fourth word.
avg