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

Template Class for Modeling a Direct Form IIR. More...

#include <iir_df.h>

Public Member Functions

void reset ()
 Reset. More...
 
Numeric out ()
 Get current output. More...
 
 ~iir_df (void)
 
 iir_df (const char *filep, const char *filez)
 Constructor. More...
 
 iir_df (const iir_df< Numeric, Coeff > &cp)
 
Numeric clock (Numeric in)
 
Numeric update (Numeric in)
 
void print (void)
 

Public Attributes

fir< Numeric, Coeff > poles
 
fir< Numeric, Coeff > zeros
 
Numeric output
 
int err
 

Detailed Description

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

Template Class for Modeling a Direct Form IIR.

Template works for float_type, long, complex, etc Taps for FIR and IIR parts are typically loaded from two seperate files Assumed that IIR part Tap 0 = 1 and is not in file. Implemented as cascade of FIR part followed by IIR part IIR function implemented with FIR class using special iir function

Author
Tony Kirke

Constructor & Destructor Documentation

template<class Numeric , class Coeff = float_type>
SPUC::iir_df< Numeric, Coeff >::~iir_df ( void  )
inline
template<class Numeric , class Coeff = float_type>
SPUC::iir_df< Numeric, Coeff >::iir_df ( const char *  filep,
const char *  filez 
)
inline

Constructor.

References SPUC::fir< Numeric, Coeff >::read_taps().

Here is the call graph for this function:

template<class Numeric , class Coeff = float_type>
SPUC::iir_df< Numeric, Coeff >::iir_df ( const iir_df< Numeric, Coeff > &  cp)
inline

Member Function Documentation

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

References SPUC::iir_df< Numeric, Coeff >::update().

Here is the call graph for this function:

template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_df< Numeric, Coeff >::out ( )
inline

Get current output.

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

References SPUC::fir< Numeric, Coeff >::print().

Here is the call graph for this function:

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

Reset.

References SPUC::fir< Numeric, Coeff >::reset().

Here is the call graph for this function:

template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_df< Numeric, Coeff >::update ( Numeric  in)
inline

References SPUC::fir< Numeric, Coeff >::iir(), and SPUC::fir< Numeric, Coeff >::update().

Referenced by SPUC::iir_df< Numeric, Coeff >::clock().

Here is the call graph for this function:

Member Data Documentation

template<class Numeric , class Coeff = float_type>
int SPUC::iir_df< Numeric, Coeff >::err
template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_df< Numeric, Coeff >::output
template<class Numeric , class Coeff = float_type>
fir<Numeric,Coeff> SPUC::iir_df< Numeric, Coeff >::poles
template<class Numeric , class Coeff = float_type>
fir<Numeric,Coeff> SPUC::iir_df< Numeric, Coeff >::zeros

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