Moving average filter.

Namespace: dsp::filter

Prototype

sptr<FilterGen<T>> filter_ma(unsigned int K)

Parameters

KMoving average memory.

Description

This filter is an optimized implementation of a moving average filter: \[ y_n = \frac{1}{N}\cdot\sum_{k=0}^{K-1} x_{n-k} \]