Glitch filters, methods, and computer program products that utilize the
generally monotonically increasing characteristics of the expected levels
of code points to detect and remove noise spikes by replacing values in
the code point sequence with new values based on the code points around a
suspect value are provided. Measured values associated with two code
points in the sequence of code points which are immediately higher in the
sequence of code points than a code point of interest are evaluated so as
to select a larger value of the two code points in the sequence as a first
reference value. The first reference value is compared with a measured
value associated with a code point in the sequence of code points
immediately lower than the code point of interest to determine if the
first reference value is smaller than the measured value associated with
the code point in the sequence of code points immediately lower than the
code point of interest. The smaller of the first reference value and the
measured value associated with a code point in the sequence of code points
immediately lower than the code point of interest is then selected so as
to provide a first replacement value. The measured value associated with
the code point of interest is then replaced with the first replacement
value if the first reference value is smaller than the measured value
associated with the code point of interest.