SPUC
3.0
|
#include <iir_lpf.h>
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... | |
![]() | |
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 |
![]() | |
Coeff | gain |
Numeric | out |
Numeric | previous_out |
Numeric | previous_in |
quantiser< Numeric > | Q |
The filter is the first order low pass digital filter given by
where a is real and |a| < 1 Note: Not normalized
|
inline |
References SPUC::iir_lpf1< Numeric, Coeff >::gain.
|
inline |
Input new sample and calculate output.
References SPUC::iir_lpf1< Numeric, Coeff >::gain, SPUC::iir_lpf1< Numeric, Coeff >::out, SPUC::iir_lpf1< Numeric, Coeff >::previous_in, SPUC::iir_lpf1< Numeric, Coeff >::previous_out, and SPUC::iir_lpf1< Numeric, Coeff >::Q.
|
inline |
References SPUC::iir_lpf1< Numeric, Coeff >::gain.
|
inline |
|
protected |