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

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

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

#include <iir_hpc.h>

Collaboration diagram for SPUC::iir_hpc< Numeric >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 iir_hpc (double A=0)
void set_coeff (double A)
 iir_hpc (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_hpc< Numeric >

Template Class for 1st Order high pass iir filter.

Template for 1st Order IIR filter

The filter is assumed the first order high 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_hpc< Numeric >::iir_hpc double  A = 0  )  [inline]
 

Here is the call graph for this function:

template<class Numeric>
SPUC::iir_hpc< Numeric >::iir_hpc 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_hpc< Numeric >::clock Numeric  input  )  [inline]
 

Input new sample and calculate output.

Shift previous outputs and calculate new output */

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

Print out coefficients.

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

Reset.

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


Member Data Documentation

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

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

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

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

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


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