A basic moving average filter.
Implements a basic moving average filter for use when wanting to smooth out signal noise.