Recently, I read a paper. In it, it said "a $32^{nd}$ order 100MHz bandpass filter". So, how the filter was designed? Does it mean this filter have 32 taps?
2 Answers
To add, the reason it is called the order specifically is because it is the order of the polynomial as given by the transfer function of the filter- which for an FIR filter is just the coefficients with increasing powers of $z^{-1}$:
$$H(z) = \sum_{n=0}^{N-1}h_n z^{-n}$$
For example a three "tap" FIR filter with coefficients [0.5 1.5 0.5] is 2nd order with the transfer function given as:
$$ H(z) = 0.5 + 1.5 z^{-1} + 0.5z^{-2}$$
After multiplying numerator and denominator by $z^2$ to be in positive powers of z, it is clear how this is a 2nd order polynomial in the numerator, consistent with the filter being a 2nd order filter:
$$H(z) = \frac{0.5 z^2+ 1.5z + 0.5 }{z^2}$$
Hence the reason order is one less than the number of taps.
An IIR filter is also implemented with feedback taps according to the order of the denominator polynomial. However implementing a 32nd order IIR filter would be very unlikely due to stability concerns, so the referenced filter is almost certainly an FIR filter. For stability reasons, the poles in higher order IIR filters are often isolated in implementation by factoring the long polynomial into separate filters such as 2nd order sections (bi-quadratic sections, or “bi-quads”).
A plot below compares the IIR and FIR structures along with the general form for the filter transfer function as used in MATLAB/Octave and Python Scipy.Signal.
$$H(z) = \frac{\sum_{k=0}^{M-1}h[k]z^{-k}}{1+\sum_{k=1}^N a[k]z^{-k}}$$
-
$\begingroup$ sry for replying so late. really thank for your answer! I think it's quite clear. thanks! $\endgroup$– tyrelaMay 10, 2020 at 11:45
The order is classically the maximum delay (in samples) that is used to produce each output (Filter order by JOS). For FIR filters, the length is "one plus order":
$$y[n] = x[n]-x[n-1]+x[n-2]$$
would be 3-tap and order 2. If the filter is IIR, it would have "more coefficients" than "one plus order". I am not sure one can say "taps" for IIR filter. This recursive equation would be order 2:
$$y[n] = x[n]-x[n-1]+y[n-1]+y[n-2]$$
A $32^{\mathrm{nd}}$-order with infinite impulse response (IIR) is likely to have stability issues. Even if it does not, the technique that goes "with each tap randomly varied by up to 5% to simulate physical differences" would be likely to endangered the stability randomly.
-
$\begingroup$ really thank for your answer! I'd like to know why you think this is a IIR filter. The author of that paper wrote "with each tap randomly varied by up to 5% to simulate physical differences", after the "a $32^nd$ order 100MHz bandpass filter." Therefore i am not sure it's a FIR or IIR and i would like to listien to your opinion. Here, the bandpass filter is used to simulate a simple transmisson line.Really thanks! $\endgroup$– tyrelaMay 9, 2020 at 12:44
-
$\begingroup$ Sorry for replying so late! I find out I misunderstood your answer yesterday! I get your point now. Thanks again! $\endgroup$– tyrelaMay 11, 2020 at 1:09