#include <iir_2nd.h>
Collaboration diagram for SPUC::iir_2nd< Numeric >:

Public Member Functions | |
| iir_2nd (Numeric B0, Numeric B1, Numeric B2, Numeric A1, Numeric A2) | |
| iir_2nd (Numeric A1=0, Numeric A2=0) | |
| void | reset () |
| void | set_a (Numeric A1, Numeric A2) |
| void | set_b (Numeric A1, Numeric A2) |
| void | set_coeff (Numeric A1, Numeric A2) |
| iir_2nd (const char *file) | |
| Constructor reading coefficients from a file. | |
| void | print () |
| Print out coefficients. | |
| Numeric | clock (Numeric input) |
| Input new sample and calculate output. | |
Protected Attributes | |
| Numeric | b0 |
| Numeric | b1 |
| Numeric | b2 |
| Numeric | a1 |
| Numeric | a2 |
| Numeric | in [3] |
| Numeric | out [3] |
Template for 2nd Order IIR filter
The filter is assumed to be a low pass 2nd order digital filter of the form
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||
|
Constructor reading coefficients from a file.
|
|
||||||||||
|
Input new sample and calculate output.
|
|
||||||||||
|
Print out coefficients.
|
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
1.4.4