pub fn rolling_mean(values: &[f64], window: usize) -> Vec<f64>Expand description
Rolling arithmetic mean of the non-NULL values in a trailing window.
Outputs NAN for the first window - 1 rows — there is no full window yet
— and thereafter the mean of whatever the window holds, which is NAN only
if the window holds nothing. AVG(v) OVER (ROWS window - 1 PRECEDING)
answers the same question with the same NULL rule.