Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SPUC::iir_1st< Numeric > Class Template Reference
[IIR filters]

Template Class for 1st Order iir filter. More...

#include <iir_1st.h>

Collaboration diagram for SPUC::iir_1st< Numeric >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 iir_1st (double A=0)
void set_coeff (double A)
 iir_1st (const char *file)
 Constructor reading coefficient from a file.
void print ()
 Print out coefficients.
Numeric clock (Numeric input)
 Input new sample and calculate output.
void reset ()
 Reset.

Protected Attributes

double gain
Numeric out
Numeric previous_out
Numeric previous_in

Detailed Description

template<class Numeric>
class SPUC::iir_1st< Numeric >

Template Class for 1st Order iir filter.

Template for 1st Order IIR filter

The filter is assumed the first order low pass digital filter generated by the bilinear transform of a first order analog filter. $ G(z) = \frac{1+z^-1}{1-a*z^-1} $

where a is real and |a| < 1 Note: Not normalized


Constructor & Destructor Documentation

template<class Numeric>
SPUC::iir_1st< Numeric >::iir_1st double  A = 0  )  [inline]
 

template<class Numeric>
SPUC::iir_1st< Numeric >::iir_1st const char *  file  )  [inline]
 

Constructor reading coefficient from a file.


Member Function Documentation

template<class Numeric>
Numeric SPUC::iir_1st< Numeric >::clock Numeric  input  )  [inline]
 

Input new sample and calculate output.

template<class Numeric>
void SPUC::iir_1st< Numeric >::print void   )  [inline]
 

Print out coefficients.

template<class Numeric>
void SPUC::iir_1st< Numeric >::reset void   )  [inline]
 

Reset.

template<class Numeric>
void SPUC::iir_1st< Numeric >::set_coeff double  A  )  [inline]
 


Member Data Documentation

template<class Numeric>
double SPUC::iir_1st< Numeric >::gain [protected]
 

template<class Numeric>
Numeric SPUC::iir_1st< Numeric >::out [protected]
 

template<class Numeric>
Numeric SPUC::iir_1st< Numeric >::previous_in [protected]
 

template<class Numeric>
Numeric SPUC::iir_1st< Numeric >::previous_out [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Sep 16 11:08:55 2005 for spuc by  doxygen 1.4.4