This is a pseudo-mirror of www.bores.com DSP intro at http://www.bores.com/courses/intro/filters/4_fir.htm [sic] as per the policy of this site.
This mirror was created from the source on 03/08/2000 at 22:46 Central Time.
Commercial information, time-dependent information, and all the damn JAVA scripts have been removed. All "htm" extensions have been changed to the proper "html" extensions. Has also been edited for
coherence, proper-linkage, and better document flow.
Copied without permission.
It is much easier to approach the problem of calculating filter coefficients if we simplify the filter equation so that we only have to deal with previous inputs (that is, we exclude the possibility of feedback). The filter equation is then simplified:
If such a filter is subjected to an impulse (a signal consisting of one value followed by zeroes) then its output must necessarily become zero after the impulse has run through the summation. So the impulse response of such a filter must necessarily be finite in duration. Such a filter is called a Finite Impulse Response filter or FIR filter.
The filter's frequency response is also simplified, because all the bottom half goes away:
It so happens that this frequency response is just the Fourier transform of the filter coefficients.
The inverse solution to a Fourier transform is well known: it is simply the inverse Fourier transform.
So the coefficients for an FIR filter can be calculated simply by taking the inverse Fourier transform of the desired frequency response.
Here is a recipe for calculating FIR filter coefficients:
BUT...
| Last updated: 10th January 2000 | http://www.bores.com/courses/intro/filters/4_fir.htm