Moving Average Filter
Averaging the last N samples in a circular buffer attenuates random noise by roughly sqrt(N) while passing slow signal changes, making it the workhorse digital filter for sensor smoothing. The cost is lag: the output trails a step change by about N/2 samples, so N trades noise rejection against responsiveness.
This Concept is waiting for its first lesson!
Averaging the last N samples in a circular buffer attenuates random noise by roughly sqrt(N) while passing slow signal changes, making it the workhorse digital filter for sensor smoothing. The cost is lag: the output trails a step change by about N/2 samples, so N trades noise rejection against responsiveness.
Are you a teacher? Sign in to start contributing.
Sign In