SPUC
3.0
|
Template Class for 1st Order iir filter. More...
#include <iir_1st.h>
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 |
Template Class for 1st Order iir filter.
The filter is the first order low pass digital filter given by
where a is real and |a| < 1 Note: Not normalized
|
inline |
|
inline |
Input new sample and calculate output.
References SPUC::iir_1st< Numeric, Coeff >::out, SPUC::iir_1st< Numeric, Coeff >::previous_out, and SPUC::iir_1st< Numeric, Coeff >::Q.
|
inline |
Print out coefficients.
|
inline |
Reset.
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
Referenced by SPUC::iir_1st< Numeric, Coeff >::clock().
|
protected |
|
protected |
Referenced by SPUC::iir_1st< Numeric, Coeff >::clock().
|
protected |
Referenced by SPUC::iir_1st< Numeric, Coeff >::clock().