SPUC::iir_exp1< Numeric, Coeff > Class Template Reference
[SPUC double templatesIIR filters]

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

#include <iir_exp1.h>

Collaboration diagram for SPUC::iir_exp1< Numeric, Coeff >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 iir_exp1 (Coeff A=0, long b=0)
void set_coeff (Coeff A)
void set_round_bits (long x)
 iir_exp1 (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

Coeff gain
Numeric out
Numeric previous_out
Numeric previous_in
quantiser< Numeric > Q

Detailed Description

template<class Numeric, class Coeff = float_type>
class SPUC::iir_exp1< Numeric, Coeff >

Template Class for 1st Order lowpass iir filter.

The filter is the first order low pass digital filter given by $ G(z) = \frac{1+z^-1}{1-az^-1} $

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

Author:
Tony Kirke


Constructor & Destructor Documentation

template<class Numeric, class Coeff = float_type>
SPUC::iir_exp1< Numeric, Coeff >::iir_exp1 ( Coeff  A = 0,
long  b = 0 
) [inline]

template<class Numeric, class Coeff = float_type>
SPUC::iir_exp1< Numeric, Coeff >::iir_exp1 ( const char *  file  )  [inline]

Constructor reading coefficient from a file.


Member Function Documentation

template<class Numeric, class Coeff = float_type>
Numeric SPUC::iir_exp1< Numeric, Coeff >::clock ( Numeric  input  )  [inline]

Input new sample and calculate output.

template<class Numeric, class Coeff = float_type>
void SPUC::iir_exp1< Numeric, Coeff >::print ( void   )  [inline]

Print out coefficients.

template<class Numeric, class Coeff = float_type>
void SPUC::iir_exp1< Numeric, Coeff >::reset ( void   )  [inline]

Reset.

template<class Numeric, class Coeff = float_type>
void SPUC::iir_exp1< Numeric, Coeff >::set_coeff ( Coeff  A  )  [inline]

template<class Numeric, class Coeff = float_type>
void SPUC::iir_exp1< Numeric, Coeff >::set_round_bits ( long  x  )  [inline]


Member Data Documentation

template<class Numeric, class Coeff = float_type>
Coeff SPUC::iir_exp1< Numeric, Coeff >::gain [protected]

template<class Numeric, class Coeff = float_type>
Numeric SPUC::iir_exp1< Numeric, Coeff >::out [protected]

template<class Numeric, class Coeff = float_type>
Numeric SPUC::iir_exp1< Numeric, Coeff >::previous_in [protected]

template<class Numeric, class Coeff = float_type>
Numeric SPUC::iir_exp1< Numeric, Coeff >::previous_out [protected]

template<class Numeric, class Coeff = float_type>
quantiser<Numeric> SPUC::iir_exp1< Numeric, Coeff >::Q [protected]


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 19:40:44 2008 for DSPTemplates by  doxygen 1.4.7