Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members
pp::Filters::LowPassIIR Class Template Reference
Low Pass Infinite Response Filter functor for use with STL algorithms.
More...
#include <Filters.h>
Inheritance diagram for pp::Filters::LowPassIIR
[legend]Collaboration diagram for pp::Filters::LowPassIIR:
[legend]List of all members.
Public Methods |
| LowPassIIR (float coefficient1 = 0.5f, float coefficient2 = 0.5f) |
virtual const char* | GetName () const |
T | operator() (const T& x) |
double | FrequencyResponse (float f) |
Protected Attributes |
T | m_previous |
Detailed Description
template<typename T = short> template class pp::Filters::LowPassIIR
Low Pass Infinite Response Filter functor for use with STL algorithms.
The basic equation is: y[n] = (0.5 * x[n]) + (0.5 * y[n-1]) where x is the input and y is the output.
This filter outputs the average of the current sample input and the last sample outputed.
H(f) = c1 /(1 - c2*z) where z = e^(-2*PI*i*deltaFrequency) real H(f) = c1/(1-c2*cos(-2*PI*deltaFrequency))
The documentation for this class was generated from the following file:
- /home/pcburns/c/penguinsound/include/PenguinSound/Filters.h
Generated at Mon Nov 27 01:47:00 2000 for LibPenguinPlay by
1.2.3 written by Dimitri van Heesch,
© 1997-2000