Algorithms
firpm designs a linear-phase FIR filter using the Parks-McClellan
algorithm [2]. The Parks-McClellan algorithm uses the Remez
exchange algorithm and Chebyshev approximation theory to design filters with an optimal
fit between the desired and actual frequency responses. The filters are optimal in the
sense that the maximum error between the desired frequency response and the actual
frequency response is minimized. Filters designed this way exhibit an equiripple
behavior in their frequency responses and are sometimes called equiripple filters.
firpm exhibits discontinuities at the head and tail of its
impulse response due to this equiripple nature.
These are type I (n odd) and type II (n even)
linear-phase filters. Vectors f and a specify
the frequency-amplitude characteristics of the filter:
f is a vector of pairs of frequency