Figure 30: Repeating and moving average filters
The moving filter uses a first-in, first-out stack. When the stack (filter count) becomes full, the
measurement conversions are averaged, yielding a reading. For each subsequent conversion placed
into the stack, the oldest conversion is discarded. The stack is averaged again, yielding a new
reading.
The median filter is used to pass the reading that is nearest to the middle from a group of readings
that are arranged according to size. The median filter uses a first-in, first-out stack similar to the
moving filter. For each subsequent conversion placed into the stack, the oldest conversion is
discarded. The median is then redetermined.