pub fn ema(v: &[f64], n: usize) -> Vec<Option<f64>>
EMA with α = 2/(n+1), seeded with the SMA of the first n values.
n