Everything2
Near Matches
Ignore Exact
Full Text
Everything2

finite impulse response

created by pottedstu

(thing) by pottedstu (1.7 y) (print)   ?   (I like it!) Wed Oct 31 2001 at 11:28:27

A finite impulse response filter or FIR filter is a simple filter commonly used in DSP (Digital Signal Processing) applications.

A FIR filter is characterised by its length, or number of taps, which we shall call n; by a set of n coefficients (also known as taps), which are constant and define the filter; and by a set of n state variables, which will generally change with each value passed through the filter.

Mathematically, applying an FIR filter to a signal is equivalent to the convolution of the signal with the filter coefficients. This means that with an n-coefficient filter, any input value has an effect on n output values (assuming the final coefficient is non-zero). This is why it is called a finite filter: the impulse response (the output produced by a single non-zero input in a stream of zeros) has a finite length and a finite number of non-zero outputs.

FIR filters are used for a number of purposes in DSP, such as for low or high-pass filters. Although they tend to be larger than other filters such as infinite impulse response (IIR) filters, they are computationally very simple, making them ideal for implementation on DSP processors. Also, because they are finite, and their impulse response equals the filter coefficients, it is easy to calculate coefficients. There is no risk of feedback amplifying the results of rounding errors, which can make the design of infinite impulse response filters difficult.

The basic algorithm for an fir filter of length n, acting on a single input value input with its coefficients in array coef and state data in array state is (expressed as a C function).

int fir(int input, int n, int coef[], int state[]) {
    int sum, i;

    for (i=n-1; i>0; i--) state[i] = state[i-1];
    state[0] = input; 

    sum = 0;
    for (i=0; i<n; i++) sum += coef[i] * state[i];

    return sum;
}

printable version
chaos

Convolution impulse response Fir Channel
Periodic Table of the Elements Radar Guided Missile Pd state
Tap array electronics Convolve
digital signal processor DSP filter
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
Nina Hartley
Editor Log: October 15, 2000
Treaty of Versailles
President Bush's address, September 20, 2001
AC-130H/U Gunship
The human body as proof for evolution
Encyclopedia on a toothpick
Noah Webster
Irn-Bru
Zap Comix
Sun Tzu in residential Canton Township
Mary Magdalene
The Lofoten Maelstrom
New Writeups
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
octillion369
Death Knight(person)
XWiz
Are you hoping for a miracle?(review)
This page courtesy of The Everything Development Company