Filter Latency and EMA Explorer

Filter Latency and EMA Explorer

animation
sensing
data-processing
Try Start with Moving average window size (N) at 10, Sample rate (Hz) at 100 and EMA smoothing factor (alpha) at 0.1, then increase alpha.
Observe The moving-average latency begins at 45.0 ms; the EMA value begins at 94.9 ms and falls as alpha rises.
Explain Moving average window size (N) sets delay to (N - 1) / 2 samples. The EMA time constant is -1 / ln(1 - alpha) samples; each sample count is divided by Sample rate (Hz) and multiplied by 1000 to obtain the displayed milliseconds.

Technical boundaries. The comparison assumes the stated window-based noise-reduction estimates and four bytes per stored moving-average value. The EMA row labeled Low-frequency group delay actually computes a time constant; true low-frequency group delay is (1 − alpha) / alpha samples.

Try It: Filter Latency and EMA Explorer

Correction: The displayed −1/ln(1−alpha) value is the EMA time constant, not its low-frequency group delay. The group delay tends to (1−alpha)/alpha samples. At alpha = 0.1, these are about 9.49 and 9 samples; at alpha = 0.5, they are about 1.443 and 1 sample.

Back to the chapter