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

Tempate Class for iir filter. More...

#include <iir.h>

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef mixed_type< Numeric,
Coeff >::dtype 
mult_type

Public Member Functions

 iir (iir_coeff &design)
 ord = Filter order
 iir (long ord=1)
 ord = Filter order
 ~iir ()
 Destructor.
int stages ()
void reset ()
 Reset history.
void set_coeffs (iir_coeff &design)
 Set 2nd order IIR coefficients.
void set_round_bits (int stage, int bits)
 Set 2nd order IIR coefficients.
void print ()
 print coefficients
Numeric clock (Numeric in)
 Clock in sample and get output.

Public Attributes

long order
long odd
long n2
smart_array< iir_2nd< Numeric,
Coeff > > 
sos
iir_lpf1< Numeric, Coeff > fos
Coeff gain
quantiser< Numeric > Q

Detailed Description

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

Tempate Class for iir filter.

consisting of first and second order filter sections

Author:
Tony Kirke


Member Typedef Documentation

template<class Numeric, class Coeff = float_type>
typedef mixed_type<Numeric,Coeff>::dtype SPUC::iir< Numeric, Coeff >::mult_type


Constructor & Destructor Documentation

template<class Numeric, class Coeff = float_type>
SPUC::iir< Numeric, Coeff >::iir ( iir_coeff design  )  [inline]

ord = Filter order

template<class Numeric, class Coeff = float_type>
SPUC::iir< Numeric, Coeff >::iir ( long  ord = 1  )  [inline]

ord = Filter order

template<class Numeric, class Coeff = float_type>
SPUC::iir< Numeric, Coeff >::~iir (  )  [inline]

Destructor.


Member Function Documentation

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

Clock in sample and get output.

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

print coefficients

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

Reset history.

template<class Numeric, class Coeff = float_type>
void SPUC::iir< Numeric, Coeff >::set_coeffs ( iir_coeff design  )  [inline]

Set 2nd order IIR coefficients.

template<class Numeric, class Coeff = float_type>
void SPUC::iir< Numeric, Coeff >::set_round_bits ( int  stage,
int  bits 
) [inline]

Set 2nd order IIR coefficients.

template<class Numeric, class Coeff = float_type>
int SPUC::iir< Numeric, Coeff >::stages (  )  [inline]


Member Data Documentation

template<class Numeric, class Coeff = float_type>
iir_lpf1< Numeric, Coeff > SPUC::iir< Numeric, Coeff >::fos

template<class Numeric, class Coeff = float_type>
Coeff SPUC::iir< Numeric, Coeff >::gain

template<class Numeric, class Coeff = float_type>
long SPUC::iir< Numeric, Coeff >::n2

template<class Numeric, class Coeff = float_type>
long SPUC::iir< Numeric, Coeff >::odd

template<class Numeric, class Coeff = float_type>
long SPUC::iir< Numeric, Coeff >::order

template<class Numeric, class Coeff = float_type>
quantiser<Numeric> SPUC::iir< Numeric, Coeff >::Q

template<class Numeric, class Coeff = float_type>
smart_array<iir_2nd< Numeric, Coeff > > SPUC::iir< Numeric, Coeff >::sos


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