SPUC  3.0
Public Member Functions | Protected Attributes | List of all members
SPUC::iir_1st< Numeric, Coeff > Class Template Reference

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

#include <iir_1st.h>

Collaboration diagram for SPUC::iir_1st< Numeric, Coeff >:
Collaboration graph
[legend]

Public Member Functions

 iir_1st (Coeff A=0, Coeff B=0, long rb=0)
 
void set_coeffs (Coeff A, Coeff B)
 
void set_round_bits (long x)
 
void print ()
 Print out coefficients. More...
 
Numeric clock (Numeric input)
 Input new sample and calculate output. More...
 
void reset ()
 Reset. More...
 

Protected Attributes

Coeff a
 
Coeff b
 
Numeric out
 
Numeric previous_out
 
Numeric previous_in
 
quantiser< Numeric > Q
 

Detailed Description

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

Template Class for 1st Order 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_1st< Numeric, Coeff >::iir_1st ( Coeff  A = 0,
Coeff  B = 0,
long  rb = 0 
)
inline

Member Function Documentation

template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_1st< Numeric, Coeff >::clock ( Numeric  input)
inline
template<class Numeric , class Coeff = float_type>
void SPUC::iir_1st< Numeric, Coeff >::print ( void  )
inline

Print out coefficients.

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

Reset.

template<class Numeric , class Coeff = float_type>
void SPUC::iir_1st< Numeric, Coeff >::set_coeffs ( Coeff  A,
Coeff  B 
)
inline
template<class Numeric , class Coeff = float_type>
void SPUC::iir_1st< Numeric, Coeff >::set_round_bits ( long  x)
inline

References SPUC::quantiser< Numeric >::set_bits().

Here is the call graph for this function:

Member Data Documentation

template<class Numeric , class Coeff = float_type>
Coeff SPUC::iir_1st< Numeric, Coeff >::a
protected
template<class Numeric , class Coeff = float_type>
Coeff SPUC::iir_1st< Numeric, Coeff >::b
protected
template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_1st< Numeric, Coeff >::out
protected
template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_1st< Numeric, Coeff >::previous_in
protected
template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_1st< Numeric, Coeff >::previous_out
protected
template<class Numeric , class Coeff = float_type>
quantiser<Numeric> SPUC::iir_1st< Numeric, Coeff >::Q
protected

The documentation for this class was generated from the following file: