pub fn savgol(values: &[f64], window: usize, order: usize) -> Vec<f64>
Savitzky–Golay smoothing. Returns the same length; the edges are clamped.