The mean filter is a simple sliding-window filter that replaces the center value in the window with the average (mean) of all the values in the window.
The mean filter is intended as a lowpass filter which smooths the data.
It may also be used as a highpass filter by subtracting the mean filtered signal from the raw data.
Here is a Matlab script: mean_filter.m
* * *
See also:
* * *
– Tom Irvine