pub fn ewma_update(_current: f64, newvalue: f64, alpha: f64) -> f64
Compute exponentially weighted moving average