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

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

Template Class for 2nd Order high-pass iir filter. More...

#include <iir_2ndhpf.h>

Collaboration diagram for SPUC::iir_2ndhpf< Numeric >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 iir_2ndhpf (Numeric A, Numeric B)
void reset ()
void print ()
 Print out coefficients.
Numeric clock (Numeric input)
 Input new sample and calculate output.

Protected Attributes

Numeric b0
Numeric b1
Numeric b2
Numeric a1
Numeric a2
Numeric in [3]
Numeric out [3]

Detailed Description

template<class Numeric>
class SPUC::iir_2ndhpf< Numeric >

Template Class for 2nd Order high-pass iir filter.

The filter is assumed to be a high pass 2nd order digital filter of the form

$ G(s) = \frac{s^2}{(s^2 + B*s + A)} in the "s" domain $ which becomes the form

$ G(z) = \frac{1 - 2*z + z^2}{(1-B+A) + (2*A-2)*z + (1+A+B)*z^2} $

in the "z" domain

iir_2nd.gif


Constructor & Destructor Documentation

template<class Numeric>
SPUC::iir_2ndhpf< Numeric >::iir_2ndhpf Numeric  A,
Numeric  B
[inline]
 


Member Function Documentation

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

Input new sample and calculate output.

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

Print out coefficients.

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


Member Data Documentation

template<class Numeric>
Numeric SPUC::iir_2ndhpf< Numeric >::a1 [protected]
 

template<class Numeric>
Numeric SPUC::iir_2ndhpf< Numeric >::a2 [protected]
 

template<class Numeric>
Numeric SPUC::iir_2ndhpf< Numeric >::b0 [protected]
 

template<class Numeric>
Numeric SPUC::iir_2ndhpf< Numeric >::b1 [protected]
 

template<class Numeric>
Numeric SPUC::iir_2ndhpf< Numeric >::b2 [protected]
 

template<class Numeric>
Numeric SPUC::iir_2ndhpf< Numeric >::in[3] [protected]
 

template<class Numeric>
Numeric SPUC::iir_2ndhpf< Numeric >::out[3] [protected]
 


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