A 'finite impulse response' (FIR) filter is a type of a
digital filter. It is 'finite' because its response to an
impulse ultimately settles to zero. This is in contrast to
infinite impulse response filters which have internal feedback and may continue to respond indefinitely.
Discussion
We start the discussion by stating the
difference equation which defines how the input signal is related to the output signal
:
where
is the input signal,
is the output signal and
are the filter coefficients.
is known as the ''filter order''; an
th-order filter has
terms on the right-hand side; these are commonly referred to as ''taps''.
The previous equation can also be expressed as
:
To find the
impulse response we set
:
where
is the
Kronecker delta impulse. The impulse response for an FIR filter follows as
:
The
Z-transform of the impulse response yields the
transfer function of the FIR filter
:
FIR filters are clearly
BIBO stable, since the output is a sum of a finite number of finite multiples of the input values, so can be no greater than
times the largest value appearing in the input.
Properties
A FIR filter has a number of useful properties which sometimes make it preferable to an
infinite impulse response filter. FIR filters:
★ Are inherently stable. This is due to the fact that all the poles are located at the origin and thus are located within the unit circle.
★ Require no feedback. This means that any rounding errors are not compounded by summed iterations. The same relative error occurs in each calculation.
★ They can be designed to be
linear phase, which means the phase change is proportional to the frequency. This is usually desired for phase-sensitive applications, for example
crossover filters, and
mastering, where transparent filtering is adequate.
Filter design
To design a filter means to select the coefficients such that the system has specific characteristics. The required characteristics are stated in filter specifications. Most of the time filter specifications refer to the frequency response of the filter. There are different methods to find the coefficients from the specifications:
# Window design method
# Frequency Sampling method
#
Weighted least squares design
#
Minimax design
#
Equiripple design. The
Remez exchange algorithm is commonly used to find an optimal equiripple set of coefficients. Here the user specifies a desired frequency response, a weighting function for errors from this response, and a filter order ''N''. The algorithm then finds the set of
coefficients that minimize the maximum deviation from the ideal. Intuitively, this finds the filter that is as close as you can get to the desired response given that you can use only
coefficients. This method is particularly easy in practice since at least one text
[1] includes a program that takes the desired filter and ''N'', and returns the optimum coefficients.
Software packages like
MATLAB and
GNU Octave provide convenient ways to apply these different methods.
Moving-average example
A moving-average filter is a very simple FIR filter. The filter coefficients are found via the following equation:
:
for
To provide a more specific example, we select the filter order:
:
The impulse response of the resulting filter is:
:
The following figure shows the block diagram of such a second-order moving-average filter.

Block diagram of a simple FIR filter (3-tap filter in this case)
To discuss stability and spectral topics we take the z-transform of the impulse response:
:
The following figure shows the pole-zero diagram of the filter. Two poles are located at the origin, and two zeros are located at
,

Pole-Zero Diagram
The frequency response is:
:
The following figure shows the absolute value of the frequency response. Clearly, the moving-average filter leaves low frequencies unaffected and blocks high frequencies. This is a typical low-pass filter characteristic.
:

Amplitude response
The following figure shows the phase response.
:

Phase response
References
1. Rabiner, Lawrence R., and Gold, Bernard, 1975: Theory and Application of Digital Signal Processing (Englewood Cliffs, New Jersey: Prentice-Hall, Inc.) ISBN 0139141014
See also
★
Electronic filter
★
Filter (signal processing)
★
Infinite impulse response (IIR) filter
★
Z-transform (specifically
Z-transform#Linear_constant_coefficient_difference_equation)
★
Filter design
★
Cascaded Integrator-Comb Filter
External links
★
Introduction to Digital Filters
★
FIR FAQ