next up previous contents
Next: The IIR class Up: Utility classes Previous: The MultiList class

The FIR class

This template class implements an nth order finite impulse response filter, where n is specified by the user. To use it, #include "FIR.cc" at the top of the file you'd like to use it in. Then include a declaration similar to the following:

	FIR<double> filter(3)

Replace "double" with whatever type you'd like it to input and output, and "3" with whatever order filter you'd like to use. If you specify a 0 or a 1 for a filter order, an error message is generated.

NOTE: The current implementation of the filter makes it such that if 2*INT_MAX data points are passed into the filter (via the "update" method, overflow will occur and the output will be incorrect. If you want it to handle that much data, the "update" method needs to be modified. Notify us by sending mail to dmartin@ececs.uc.edu.



Philip A. Wilsey
1/26/1998