FIR Filter Implementation in C++ Next  |  Prev  |  Top  |  Index  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search


FIR Filter Implementation in C++

Below are program source listings for FIR.h and FIR.cpp, the header file and class file for implementing arbitrary causal FIR filters in the Synthesis Tool Kit (STK) framework [15,18].

Note that FIR filters can be obtained as a special case of IIR filters. A C++ class for IIR digital filters is included in the STK. (See the Filter STK class.) When the feedback coefficients (called ``$ a$ coefficients'') are zero, a general (causal) FIR filter is obtained. The class below was written before the Filter STK class existed, so it is included here mainly as a tutorial example of how STK classes may be written. See [87]I.1 for a tutorial introduction to using and developing for the STK.



Subsections
Next  |  Prev  |  Top  |  Index  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

[How to cite this work] [Order a printed hardcopy]

``Introduction to Digital Filters with Audio Applications'', by Julius O. Smith III, (August 2006 Edition).
Copyright © 2007-02-02 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA  [Automatic-links disclaimer]