Filter for continuous averaging