BORES logo

Introduction to DSP

Filtering: FIR filter design by the equiripple method

FIR filter coefficients can be calculated using the window method.

But the window methoddoes not correspond to any known form of optimisation. In fact it can be shown that the window method is not optimal - by which we mean, it does not produce the lowest possible number of filter coefficients that just meets the requirement.

The art of FIR filter design by the window method lies in choosing the window function which meets your requirement with the minimum number of filter coefficients.

If the window method design is not good enough we have two choices:

The Remez Exchange algorithm is something clever. It uses a mathematical optimisation method.

The following explanation is not mathematically correct, but since we are trying to get an idea of what is going on, and not trying to duplicate the thinking of geniuses, it is worth going through anyway.

Using the window method to design a filter we might proceed manually as follows:

In a way, this is what the Remez Exchange algorithm does automatically. It iterates between the filter coefficients and the actual frequency response until it finds the filter that just meets the specification with the lowest possible number of filter coefficients. Actually, the Remez Exchange algorithm never really calculates the frequency response: but it does keep comparing the actual with the design goal.

Remez was a Russian. Two Americans - Parks and McLellan - wrote a FORTRAN program to implement the Remez algorithm. So this type of filter design is often called a Parks McLellan filter design.

The Remez/Parks McLellan method produces a filter which just meets the specification without overperforming. Many of the window method designs actually perform better as you move further away from the passband: this is wasted performance, and means they are using more filter coefficients than they need. Similarly, many of the window method designs actually perform better than the specification within the passband: this is also wasted performance, and means they are using more filter coefficients than they need. The Remez/Parks McLellan method performs just as well as the specification but no better: one might say it produces the worst possible design that just meets the specification at the lowest possible cost - almost a definition of practical engineering. So Remez/Parks McLellan designs have equal ripple - up to the specification but no more - in both passband and stopband. This is why they are often called equiripple designs.

The equiripple design produces the most efficient filters - that is, filters that just meet the specification with the least number of coefficients. But there are reasons why they might not be used in all cases:

We hope you have found this course module to be helpful. Please contact us with your comments or suggestions.

go back to start of module go back to previous page go to next page go to next module

Copyrite:Bores Signal Processing