pub fn sum(values: &[f64], period: usize) -> Vec<f64>
Sum of each complete trailing window, recovering after missing inputs leave it.