pub fn moving_average(signal: &[f64], window: usize) -> Vec<f64>
Compute the moving average of a signal.