Order of a digital filter
The order of a digital filter can be defined as the
number of previous inputs (stored in the processor's memory) used to
calculate the current output.
This is illustrated by the filters given as examples in the previous
section.
- Example (1): yn = xn
- This is a zero order filter, since the current output yn
depends only on the current input xn and not on any previous
inputs.
- Example (2): yn = Kxn
- The order of this filter is again zero, since no previous outputs
are required to give the current output value.
- Example (3): yn = xn-1
- This is a first order filter, as one previous input (xn-1)
is required to calculate yn. (Note that this filter is
classed as first-order because it uses one previous input, even though
the current input is not used).
- Example (4): yn = xn - xn-1
- This is again a first order filter, since one previous input value
is required to give the current output.
- Example (5): yn = (xn + xn-1) / 2
- The order of this filter is again equal to 1 since it uses just one
previous input value.
- Example (6): yn = (xn + xn-1 + xn-2)
/ 3
- To compute the current output yn, two previous inputs (xn-1
and xn-2) are needed; this is therefore a second-order
filter.
- Example (7): yn = (xn - xn-2) / 2
- The filter order is again 2, since the processor must store two previous
inputs in order to compute the current output. This is unaffected by the absence
of an explicit xn-1 term in the filter expression.
The order of a digital filter may be any positive integer. A zero-order
filter (such as those in examples (1) and (2) above) is possible, but somewhat
trivial, since it does not really filter the input signal in the accepted sense.
Next |
Previous | DSP home page |
Index