Compute EWMA vector
use openquant::util::fast_ewma::ewma;
let x = vec![1.0, 2.0, 3.0, 4.0];
let y = ewma(&x, 3); Market Microstructure, Dependence and Regime Detection
Fast EWMA primitive shared across feature and volatility routines.
Provides performant smoothing for repeated rolling computations.
ewma\[m_t=\alpha x_t + (1-\alpha)m_{t-1}\]
\[\alpha=\frac{2}{w+1}\]
use openquant::util::fast_ewma::ewma;
let x = vec![1.0, 2.0, 3.0, 4.0];
let y = ewma(&x, 3);