digital filter functions More...
|static float||EWMA_filter (float a, float xk, float yk1)|
|static float||EWMA_smoothing (int N)|
digital filter functions
Definition in file filter.h.
|static float EWMA_filter||(||float||a,|
Exponentially weighted moving average filter. Transfer function:
y[k] = a*x[k] + (1-a)*y[k-1]
The smoothing factor, "a", is how much weight to assign the latest observation. Values of "a" close to one have less of a smoothing effect and give greater weight to recent changes in the data, while values of "a" closer to zero have a greater smoothing effect and are less responsive to recent changes.