Skip to main content

ema_sma

Function ema_sma 

Source
pub fn ema_sma(values: &[f64], period: usize) -> Vec<f64>
Expand description

Exponential average with alpha 2 / (period + 1), seeded by the mean of the first period finite values. Useful for nested averages with a full warm-up.