<< Chapter < Page Chapter >> Page >

Equal-ripple design

While other types of filters are often of interest, this note focuses on the lowpass linear phase filter. Even though it is not immediately obvious, virtuallyall of the analytical results developed in this note apply to the other types as well. This fact is amplified in the module Extension to Non-lowpass Filters .

It is known that the Parks-McClellan filter synthesis software package produces “optimal" filters in the sense that the best possible filter performance isattained for the number of “filter taps" allowed by the designer. “Optimal" can be defined various ways. The Parks-McClellan package uses the Remezexchange algorithm to optimize the filter design by selecting the impulse response of given length, termed here N , which minimizes the peak ripple in the passband and stopband. It can be shown, though not here, that minimizingthe peak, or maximum, ripple is equivalent to making all of the local peaks in the ripple equal to each other. This fact leads to three different names foressentially the same filter design. They are commonly called “equal-ripple" filters, because the local peaks are equal in deviation from the desired filterresponse. Because the maximum ripple deviation is minimized in this optimization procedure, they are also termed “minimax" filters. Finally, since the RussianChebyshev is usually associated with minimax designs He developed the concept of minimax design and a set of polynomials which carry his name not fromfilter design, but from the optimal design of piston drive rods for steam locomotives. They are discussed more in "Filter Sizing" and Appendix B . , these filters are often given his name.

The design template for an equal-ripple lowpass filter is shown in [link] .

Frequency Response of an Optimal Weighted Equal-ripple Linear Phase FIR Filter

The passband extends from 0 Hz to the cutoff frequency denoted f c . The gain in the passband is assumed to be unity. Any other gain isattained by scaling the whole impulse response appropriately. The stopband begins at the frequency denoted f s t and ends at the so-called Nyquist or “folding" frequency, denoted by f s 2 , where f s is the sampling frequency of the data entering the digital filter. In somereferences, [1] for example, the sampling rate f s is assumed to be normalized to unity just as the passband gain has here. The dependence onthe sampling frequency is kept explicit in this note, however, so that its impact on design parameters can be kept visible.

The optimal synthesis algorithm is assumed here to produce an impulse response whose associated frequency response has ripples in both the passbandand the stopband. The peak deviation in the passband is denoted δ 1 and the peak deviation in the stopband is denoted δ 2 . It is commonly thought that an “equal-ripple" design forces δ 1 to equal δ 2 . In fact this is not true. The local ripple peaks in the passband will allequal δ 1 and those in the stopband will all equal δ 2 . For a given filter specification the two are linked together by a weight denoted W , so that δ 1 = W δ 2 . In fact the Parks-McClellan routines insure the design of weighted equal-ripple filters. The choice of W is discussed shortly.

An important design parameter is the transition band , denoted Δ f , and defined as the difference between the stopband edge f s t and the passband edge f c . Thus,

Δ f = f s t - f c .

In theory the required filter order N is a function of all of the design parameters defined so far, that is, f s , f c , f s t , δ 1 , and δ 2 . The central point of this technical note is that under a large range of practical circumstances the required value of N can be estimated using only f s , Δ f , and the smaller of δ 1 and δ 2 .

Conversion of specifications

While the parameters defined in the previous section relate directly to the theory of FIR filter design optimization, some of them differfrom those usually employed to specify the performance of a filter. We discuss here the conversion of two of those, δ 1 and δ 2 , into more traditional measures.

Passband Ripple : [link] uses the parameter δ 1 to describe the peak difference between the template lowpass filter and the magnitude of the filter response actually attained.Traditionally this passband ripple has been specified in terms of the maximum difference in the power level transmitted through the filter inthe passband. By this definition, the peak-to-peak passband ripple, abbreviated here asPBR, is given by

P B R = 10 l o g 10 ( 1 + δ 1 ) 2 ( 1 - δ 1 ) 2 .

Assuming that the nominal power transmission through the filter is unity, the numerator is the power gain at a ripple peak and the denominator isthe gain at a trough. It is easily shown (see Appendix A ) that when δ 1 is small compared to unity, or, equivalently, when the passband ripple is less than about 1.5 dB, then Strictly speaking, the peak ripple excursions are equal in magnitude, not in decibels. Thissubtlety is completely negligible for small values of δ 1 .

P B R 17 . 36 δ 1 .

Stopband Ripple : The traditional specification forstopband ripple, abbreviated here as SBR, is the power difference between the nominal passband transmission level and the transmission level of thehighest ripple in the stopband. For the equal ripple design shown in [link] , all stopband ripples have equal peak values and the nominal passband transmission is unity, that is, 0 dB. The stopbandripple, or more accurately, the minimum stopband power rejection, denoted SBR, is given by

S B R = 20 l o g 10 δ 2 .

Suppose a filter is specified to have a peak-to-peak passband ripple of 0.5 dB and a minimum stopband attenuation of 60 dB.Using the above equations we find that δ 1 = 0 . 0288 , δ 2 = . 001 , and the relative weighting, W , therefore equals 28.8.

In discussing filter specifications it should be noted that the cutoff frequency f c shown in [link] differs from the definition typically used in analog filter designs. The cutofffrequency is commonly defined as the 3 dB point , that is, that frequency at which the power transfer function fallsto a value 3 dB below the nominal passband level. Instead the value of f c shown in [link] is the highest frequency at which the specified passband ripple is still attained. In very few practical cases do thetwo definitions result in the same value.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Notes on the design of optimal fir filters. OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10553/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Notes on the design of optimal fir filters' conversation and receive update notifications?

Ask