-
Notifications
You must be signed in to change notification settings - Fork 284
moving_average_filter
#Moving Average Filter
##Description The MovingAverageFilter class implements a low pass moving average filter. The MovingAverageFilter is part of the Preprocessing Modules.
An example of a signal (sine wave + random noise) filtered using a moving average filter. The red signal is the original signal + noise, the green signal is the filtered signal using a moving average filter with a window size of 5, and the blue signal is the filtered signal using a moving average filter with a window size of 20.
##Advantages The MovingAverageFilter is good for removing a small amount of high frequency noise from an N-dimensional signal.
##Disadvantages The main disadvantage of the MovingAverageFilter is that in order to filter out significantly high frequency noise, the window size of the filter needs to be large. The problem with having a large filter window is that this will induce a large latency in any signal passing through the filter, which may not be advantageous for real-time applications. If you find that you need a large filter window to filter out high frequency noise and the latency induced by this window size is not suitable for your real-time application, then you might want to try either a Double Moving Average Filter or Low Pass Filter instead.
##Example Moving Average Filter Example