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

#include <iir_lpf.h>

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

Public Member Functions

 iir_lpf (Coeff A=0, long b=0)
 
Coeff get_a0 ()
 
Coeff get_b0 ()
 
Numeric clock (Numeric input)
 Input new sample and calculate output. More...
 
- Public Member Functions inherited from SPUC::iir_lpf1< Numeric, Coeff >
 iir_lpf1 (Coeff A=0, long b=0)
 
void set_coeff (Coeff A)
 
void set_round_bits (long x)
 
 iir_lpf1 (const char *file)
 Constructor reading coefficient from a file. More...
 
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
 
- Protected Attributes inherited from SPUC::iir_lpf1< Numeric, Coeff >
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_lpf< Numeric, Coeff >

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_lpf< Numeric, Coeff >::iir_lpf ( Coeff  A = 0,
long  b = 0 
)
inline

Member Function Documentation

template<class Numeric , class Coeff = float_type>
Numeric SPUC::iir_lpf< Numeric, Coeff >::clock ( Numeric  input)
inline
template<class Numeric , class Coeff = float_type>
Coeff SPUC::iir_lpf< Numeric, Coeff >::get_a0 ( )
inline
template<class Numeric , class Coeff = float_type>
Coeff SPUC::iir_lpf< Numeric, Coeff >::get_b0 ( )
inline

Member Data Documentation

template<class Numeric , class Coeff = float_type>
Coeff SPUC::iir_lpf< Numeric, Coeff >::a
protected

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