pub fn lag(values: &[f64], offset: usize) -> Vec<f64>Expand description
Lag: value offset rows earlier. Returns NAN for first offset rows.
When offset >= values.len(), all output values are NAN (the entire
series is shifted beyond the available data).