pub fn wma(v: &[f64], n: usize) -> Vec<Option<f64>>
Linearly weighted moving average (weights 1..n, newest heaviest).