SPUC
3.0
|
Tempate Class for iir filter. More...
#include <iir.h>
Public Types | |
typedef mixed_type< Numeric, Coeff >::dtype | mult_type |
Public Member Functions | |
iir (iir_coeff &design) | |
ord = Filter order More... | |
iir (long ord=1) | |
ord = Filter order More... | |
void | clear () |
void | realloc (iir_coeff &design) |
~iir () | |
Destructor. More... | |
int | stages () |
void | reset () |
Reset history. More... | |
void | set_coeffs (iir_coeff &design) |
Set 2nd order IIR coefficients. More... | |
void | set_round_bits (int stage, int bits) |
Set 2nd order IIR coefficients. More... | |
void | print () |
print coefficients More... | |
Numeric | clock (Numeric in) |
Clock in sample and get output. More... | |
Public Attributes | |
long | order |
long | odd |
long | n2 |
std::vector< iir_2nd< Numeric, Coeff > > | sos |
iir_lpf1< Numeric, Coeff > | fos |
Coeff | gain |
quantiser< Numeric > | Q |
Tempate Class for iir filter.
consisting of first and second order filter sections
typedef mixed_type<Numeric,Coeff>::dtype SPUC::iir< Numeric, Coeff >::mult_type |
|
inline |
ord = Filter order
References SPUC::iir_coeff::n2, SPUC::iir_coeff::odd, SPUC::iir_coeff::order, and SPUC::iir< Numeric, Coeff >::set_coeffs().
|
inline |
ord = Filter order
Destructor.
|
inline |
|
inline |
Clock in sample and get output.
References SPUC::iir_lpf1< Numeric, Coeff >::clock(), SPUC::iir< Numeric, Coeff >::n2, SPUC::iir< Numeric, Coeff >::odd, and SPUC::iir< Numeric, Coeff >::Q.
Referenced by main().
|
inline |
print coefficients
References SPUC::iir< Numeric, Coeff >::n2, and SPUC::iir_lpf1< Numeric, Coeff >::print().
Referenced by main().
|
inline |
References SPUC::iir_coeff::n2, SPUC::iir_coeff::odd, SPUC::iir_coeff::order, SPUC::iir< Numeric, Coeff >::reset(), and SPUC::iir< Numeric, Coeff >::set_coeffs().
|
inline |
Reset history.
References SPUC::iir< Numeric, Coeff >::n2, and SPUC::iir_lpf1< Numeric, Coeff >::reset().
Referenced by SPUC::iir< Numeric, Coeff >::realloc().
|
inline |
Set 2nd order IIR coefficients.
References SPUC::iir_coeff::convert_to_ab(), SPUC::iir_coeff::gain, SPUC::iir< Numeric, Coeff >::n2, SPUC::iir< Numeric, Coeff >::odd, SPUC::iir_coeff::poles, SPUC::iir_lpf1< Numeric, Coeff >::set_coeff(), SPUC::iir_coeff::state, and SPUC::iir_coeff::zeros.
Referenced by SPUC::iir< Numeric, Coeff >::iir(), and SPUC::iir< Numeric, Coeff >::realloc().
|
inline |
Set 2nd order IIR coefficients.
References SPUC::iir_lpf1< Numeric, Coeff >::set_round_bits().
|
inline |
iir_lpf1< Numeric, Coeff > SPUC::iir< Numeric, Coeff >::fos |
Coeff SPUC::iir< Numeric, Coeff >::gain |
long SPUC::iir< Numeric, Coeff >::n2 |
long SPUC::iir< Numeric, Coeff >::odd |
Referenced by SPUC::iir< Numeric, Coeff >::clock(), and SPUC::iir< Numeric, Coeff >::set_coeffs().
long SPUC::iir< Numeric, Coeff >::order |
Referenced by SPUC::iir< Numeric, Coeff >::clock().
std::vector<iir_2nd< Numeric, Coeff > > SPUC::iir< Numeric, Coeff >::sos |