<< Chapter < Page | Chapter >> Page > |
This section describes the theoretical underpinnings of [link] and [link] . A clear understanding of this section is not required to use the Parks-McClellan software routines orto enjoy the remainder of this technical note.
As discussed in Section 2, the Parks-McClellan synthesis algorithm uses the Remez exchange algorithm to optimally select the values of the impulse response coefficients in such a way as to minimize the weighted peak differencebetween the desired magnitude frequency response and the actual one. Since the solution to this optimization problem does not have a closed form, it isnot easy to generalize its properties. To learn about its properties and to develop appropriate design rules, McClellan, Rabiner, and others synthesizedthousands of filters and measured their properties. Curves with this sort of information are presented in [1], along with a complicated empirical formula for the filter order in terms of all of the parameters specifying the filter. While this work is not immediately useful for design work, a limiting caseuncovered by those workers does provide some insight into the optimal filter solutions and leads to the simple rules compressed into [link] and [link] .
Suppose we desire to design a high-order, FIR, linear phase filter for which the passband is as narrow as possible. Looking again at Figure 1 from the module titled "Statement of the Optimal Linear Phase FIR Filter Design Problem" with this in mind reveals that all of the ripple behavior for such a filter will occur in the stopband. Sucha filter, or a very close approximation to it, can be synthesized using another FIR filter design method, that of multiplying asampled function, where , by an -point window function constructed from a Chebyshev polynomial.The sampled , or sinc, function is the inverse z-transform of a perfect lowpass filter. It cannot be used directly since it extendsinfinitely far into both forward and backward time. A finite duration impulse response is obtained by multiplying the “perfect" response bya finite-duration window function. The one discussed here uses Chebyshev polynomials as their basis.These polynomials are discussed in Appendix B They all have the property that the polynomials' peak magnitude is unity for values of between -1 and 1, and that for greater values of , the magnitude grows as where is the order of the polynomial. One such polynomial is shown in [link] .
We desire that the oscillatory portion of the polynomial correspond to the stopband region of the filter response and the portion to correspond to the transition from the stopband to the passband. This is accomplished byinvoking a change of variables relating to the frequency . The resulting equation is then evaluated at the several points to obtain anexpression for the transition bandwidth . The details of this manipulation are contained in Appendix C . They resultin the following equation:
If is small compared to unity and is large compared to unity, as already assumed, then is closely approximated by
When the argument of the hyperbolic cosine is large, the function can be approximated as
With suitable manipulation we find that
Substituting this expression for the inverse hyperbolic cosine yields a simple formula for :
Rewriting this equation shows that must equal or exceed:
where is given by
Rewriting equation 4 from the module titled "Statement of the Optimal Linear Phase FIR Filter Design Problem" , can be written as
Substituting this into [link] yields
which can be recognized as [link] .
The derivation just presented assumes that the filter of interest is a lowpass design, the filter order is high ( or so), that the passband ripple is small (that ), and that the filter uses all degrees of freedom except one in the stopband, that is,that the filter has the lowest possible cutoff frequency. In fact not all of these conditions have to be met to make the design [link] and [link] useful. An indication of how errors can enter the estimate of under other conditions can be seen, however, by examining [link] .
This figure shows the smallest value of attainable with optimal equal-ripple linear phase filters of different lengths as a function of thecutoff frequency . [link] and [link] predict that the transition bandwidth is constant as a function of cutoff frequency and that it always gets smaller as the filter order increases. [link] shows that these generalities are not true. It can be seen that varies somewhat as a function of and that there are particular choices of where a lower value of is actually attainable with a lower filter order rather than a higher one.It would appear that, for a given filter order , some values of are “hard" to attain a small transition bandwidth and others are “easy". This is in fact true and the reason for it will be discussed in "Why does alpha Depend on the Cutoff Frequency fc?" .
While [link] shows that is not truly independent of the cutoff frequency and monotonic in the filter order , the significant variations appear only for low filter orders. If is greater than 20 or so, and the other conditions listed above hold true, as they usually do, then [link] and [link] can be used with impugnity, even for highpass and bandpass filters.
Notification Switch
Would you like to follow the 'Notes on the design of optimal fir filters' conversation and receive update notifications?