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

SPUC::iir_hp1< Numeric > Class Template Reference

Template for 1st Order IIR filter. More...

#include <iir_hp1.h>

Collaboration diagram for SPUC::iir_hp1< Numeric >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 iir_hp1 (double A=0)
void set_coeff (double A)
 iir_hp1 (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
double coeff
Numeric out
Numeric previous_out
Numeric previous_in

Detailed Description

template<class Numeric>
class SPUC::iir_hp1< Numeric >

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) = (1+1/z)/(1-a/z) where a is real and |a| < 1 Note: Not normalized


Constructor & Destructor Documentation

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

Here is the call graph for this function:

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

Constructor reading coefficient from a file.

Here is the call graph for this function:


Member Function Documentation

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

Input new sample and calculate output.

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

Print out coefficients.

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

Reset.

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


Member Data Documentation

template<class Numeric>
double SPUC::iir_hp1< Numeric >::coeff [protected]
 

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

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

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

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


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