All Topics  
Finite impulse response

 

   Email Print
   Bookmark   Link






 

Finite impulse response



 
 
A finite impulse response (FIR) filter is a type of a digital filter
Digital filter

In electronics, computer science and mathematics, a digital filter is a system that performs mathematical operations on a Sampling , discrete-time Signal to reduce or enhance certain aspects of that signal....
. The impulse response
Impulse response

The impulse response of a system is its output when presented with a very brief input signal, an impulse. Mathematically, an impulse can be modeled as a Dirac delta function for continuous-time systems, or as the Kronecker delta for discrete-time systems....
, the filter's response to a Kronecker delta
Kronecker delta

In mathematics, the Kronecker delta or Kronecker's delta, named after Leopold Kronecker , is a Function of two variables, usually integers, which is 1 if they are equal, and 0 otherwise....
 input, is 'finite' because it settles to zero in a finite number of sample
Sampling (signal processing)

In signal processing, sampling is the reduction of a continuous signal to a discrete signal. A common example is the conversion of a sound wave to a sequence of sample ....
 intervals. This is in contrast to infinite impulse response
Infinite impulse response

Infinite impulse response is a property of signal processing systems. Systems with that property are known as IIR systems or when dealing with electronic filter systems as IIR filters....
 (IIR) filters which have internal feedback and may continue to respond indefinitely. The impulse response of an Nth order FIR filter lasts for N+1 samples, and then dies to zero.

tart 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.






Discussion
Ask a question about 'Finite impulse response'
Start a new discussion about 'Finite impulse response'
Answer questions from other users
Full Discussion Forum



Encyclopedia


A finite impulse response (FIR) filter is a type of a digital filter
Digital filter

In electronics, computer science and mathematics, a digital filter is a system that performs mathematical operations on a Sampling , discrete-time Signal to reduce or enhance certain aspects of that signal....
. The impulse response
Impulse response

The impulse response of a system is its output when presented with a very brief input signal, an impulse. Mathematically, an impulse can be modeled as a Dirac delta function for continuous-time systems, or as the Kronecker delta for discrete-time systems....
, the filter's response to a Kronecker delta
Kronecker delta

In mathematics, the Kronecker delta or Kronecker's delta, named after Leopold Kronecker , is a Function of two variables, usually integers, which is 1 if they are equal, and 0 otherwise....
 input, is 'finite' because it settles to zero in a finite number of sample
Sampling (signal processing)

In signal processing, sampling is the reduction of a continuous signal to a discrete signal. A common example is the conversion of a sound wave to a sequence of sample ....
 intervals. This is in contrast to infinite impulse response
Infinite impulse response

Infinite impulse response is a property of signal processing systems. Systems with that property are known as IIR systems or when dealing with electronic filter systems as IIR filters....
 (IIR) filters which have internal feedback and may continue to respond indefinitely. The impulse response of an Nth order FIR filter lasts for N+1 samples, and then dies to zero.

Definition

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 a convolution
Convolution

In mathematics and, in particular, functional analysis, convolution is a mathematical operator on two function s f and g, producing a third function that is typically viewed as a modified version of one of the original functions....
 of filter coefficients and the input signal.

Impulse response and transfer function

To find the impulse response
Impulse response

The impulse response of a system is its output when presented with a very brief input signal, an impulse. Mathematically, an impulse can be modeled as a Dirac delta function for continuous-time systems, or as the Kronecker delta for discrete-time systems....
 we set

where is the Kronecker delta
Kronecker delta

In mathematics, the Kronecker delta or Kronecker's delta, named after Leopold Kronecker , is a Function of two variables, usually integers, which is 1 if they are equal, and 0 otherwise....
 impulse. The impulse response for an FIR filter is the set of coefficients , as follows

for to .

The Z-transform
Z-transform

In mathematics and signal processing, the Z-transform converts a discrete_mathematics time-domain signal, which is a sequence of real number or complex numbers, into a complex frequency-domain representation....
 of the impulse response yields the transfer function
Transfer function

A transfer function is a mathematical representation, in terms of spatial or temporal frequency, of the relation between the input and output of a system analysis....
 of the FIR filter

FIR filters are clearly bounded-input bounded-output (BIBO) stable
BIBO stability

In electrical engineering, specifically signal processing and control theory, BIBO stability is a form of Control theory#Stability for linear system Signal s and systems that take inputs....
, 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

An FIR filter has a number of useful properties which sometimes make it preferable to an infinite impulse response
Infinite impulse response

Infinite impulse response is a property of signal processing systems. Systems with that property are known as IIR systems or when dealing with electronic filter systems as IIR filters....
 (IIR) 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. This also makes implementation simpler.
  • They can be designed to be linear phase
    Linear phase

    Linear phase is a property of a electronic filter, where the phase response of the filter is a linear function of frequency, excluding the possibility of wraps at ....
    , which means the phase change is proportional to the frequency. This is usually desired for phase-sensitive applications, for example crossover filters
    Audio crossover

    Audio crossovers are a class of electronic filters designed specifically for use in audio applications, especially hi-fi. Commonly used loudspeaker speaker driver are incapable of covering the entire audio spectrum with acceptable loudness and lack of distortion by themselves....
    , and mastering
    Audio mastering

    Mastering, a form of audio post-production, is the process of preparing and transferring recorded audio from a source containing the final mix to a data storage device ; the source from which all copies will be produced ....
    , where transparent filtering is adequate.


The main disadvantage of FIR filters is that considerably more computation power is required compared with a similar IIR filter. This is especially true when low frequencies (relative to the sample rate) are to be affected by the filter.

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 frequency specifications:
  1. Window design method
  2. Frequency Sampling method
  3. Weighted least squares design
    Least squares

    The method of least squares or ordinary least squares is used to solve overdetermined systems. Least squares is often applied in statistical contexts, particularly regression analysis....
  4. Minimax design
  5. Equiripple design. The Remez exchange algorithm
    Remez algorithm

    The Remez algorithm , published by Evgeny Yakovlevich Remez in 1934 is an iterative algorithm for finding the best approximation in the uniform norm L8 in the Chebyshev space....
     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 includes a program that takes the desired filter and N, and returns the optimum coefficients.


Software packages like MATLAB
MATLAB

MATLAB is a Numerical analysis environment and programming language. Maintained by The MathWorks, MATLAB allows easy matrix manipulation, plotting of function and data, implementation of algorithms, creation of user interfaces, and interfacing with programs in other languages....
, GNU Octave
GNU Octave

Octave is a computer program for performing numerical analysis which is mostly compatible with MATLAB. It is part of the GNU Project. It is free software under the terms of the GNU General Public License....
 and Scilab
Scilab

Scilab is a Numerical analysis package developed since 1990 by researchers from the Institut National de Recherche en Informatique et en Automatique and the ?cole nationale des ponts et chauss?es ....
 provide convenient ways to apply these different methods.

Some of the time, the filter specifications refer to the time-domain shape of the input signal the filter is expected to "recognize". The optimum matched filter
Matched filter

In telecommunications, a matched filter is obtained by cross-correlation a known signal , or template, with an unknown signal to detection the presence of the template in the unknown signal....
 is to sample that shape and use those samples directly as the coefficients of the filter -- giving the filter an impulse response that is the time-reverse of the expected input signal.

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.

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 ,

Ma2polezero C
The frequency response, for frequency ω in radians per sample, is:

The following figure shows the absolute value of the frequency response. Clearly, the moving-average filter passes low frequencies with a gain near 1, and attenuates high frequencies. This is a typical low-pass filter characteristic. Frequencies above π are aliases
Aliasing

In statistics, signal processing, computer graphics and related disciplines, aliasing refers to an effect that causes different continuous signals to become indistinguishable when sampling ....
 of the frequencies below π, and are generally ignored or filtered out if reconstructing a continuous-time signal.

Ma2amp C
The following figure shows the phase response
Phase response

Phase response is the relationship between the phase of a sinusoidal input and the output signal passing through any device which accepts input and produces an output signal such as an amplifier or a filter ....
.

Ma2phase C

See also

  • Electronic filter
    Electronic filter

    Electronic filters are electronic circuits which perform signal processing functions, specifically to remove unwanted frequency components from the signal and/or to enhance wanted ones....
  • Filter (signal processing)
  • Infinite impulse response (IIR) filter
    Infinite impulse response

    Infinite impulse response is a property of signal processing systems. Systems with that property are known as IIR systems or when dealing with electronic filter systems as IIR filters....
  • Z-transform
    Z-transform

    In mathematics and signal processing, the Z-transform converts a discrete_mathematics time-domain signal, which is a sequence of real number or complex numbers, into a complex frequency-domain representation....
     (specifically Z-transform#Linear_constant-coefficient_difference_equation
    Z-transform

    In mathematics and signal processing, the Z-transform converts a discrete_mathematics time-domain signal, which is a sequence of real number or complex numbers, into a complex frequency-domain representation....
    )
  • Filter design
    Filter design

    Filter design is the process of designing a filter , often a linear shift-invariant filter, which satisfies a set of requirements, some of which are contradictory....
  • Cascaded Integrator-Comb Filter
    Cascaded Integrator-Comb Filter

    In Digital_signal_processing, a cascaded integrator-comb is an optimized class of finite impulse response filter combined with an interpolation or Decimation ....


External links