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

Public Types | |
| typedef mixed_type< Numeric, Coeff >::dtype | sum_type |
Public Member Functions | |
| iir_2nd (Coeff B0, Coeff B1, Coeff B2, Coeff A1, Coeff A2, long b=0) | |
| iir_2nd (Coeff A1=0, Coeff A2=0) | |
| void | set_round_bits (long x) |
| int | get_round_bits () |
| Coeff | get_b0 () |
| void | reset () |
| void | set_a (Coeff A1, Coeff A2) |
| void | set_b (Coeff A1, Coeff A2) |
| void | set_coeffs (Coeff B0, Coeff B1, Coeff B2, Coeff A1, Coeff 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. | |
Public Attributes | |
| Numeric | fb2 |
| Numeric | fb1 |
| Numeric | fb0 |
Protected Attributes | |
| long | round_bits |
| Coeff | b0 |
| Coeff | b1 |
| Coeff | b2 |
| Coeff | a1 |
| Coeff | a2 |
| Numeric | in [3] |
| quantiser< Coeff > | Q |
The filter is assumed to be a low pass 2nd order digital filter of the form
| typedef mixed_type<Numeric,Coeff>::dtype SPUC::iir_2nd< Numeric, Coeff >::sum_type |
| SPUC::iir_2nd< Numeric, Coeff >::iir_2nd | ( | Coeff | B0, | |
| Coeff | B1, | |||
| Coeff | B2, | |||
| Coeff | A1, | |||
| Coeff | A2, | |||
| long | b = 0 | |||
| ) | [inline] |
| SPUC::iir_2nd< Numeric, Coeff >::iir_2nd | ( | Coeff | A1 = 0, |
|
| Coeff | A2 = 0 | |||
| ) | [inline] |
| SPUC::iir_2nd< Numeric, Coeff >::iir_2nd | ( | const char * | file | ) | [inline] |
Constructor reading coefficients from a file.
| Numeric SPUC::iir_2nd< Numeric, Coeff >::clock | ( | Numeric | input | ) | [inline] |
Input new sample and calculate output.
| Coeff SPUC::iir_2nd< Numeric, Coeff >::get_b0 | ( | ) | [inline] |
| int SPUC::iir_2nd< Numeric, Coeff >::get_round_bits | ( | ) | [inline] |
| void SPUC::iir_2nd< Numeric, Coeff >::print | ( | void | ) | [inline] |
Print out coefficients.
| void SPUC::iir_2nd< Numeric, Coeff >::reset | ( | void | ) | [inline] |
| void SPUC::iir_2nd< Numeric, Coeff >::set_a | ( | Coeff | A1, | |
| Coeff | A2 | |||
| ) | [inline] |
| void SPUC::iir_2nd< Numeric, Coeff >::set_b | ( | Coeff | A1, | |
| Coeff | A2 | |||
| ) | [inline] |
| void SPUC::iir_2nd< Numeric, Coeff >::set_coeffs | ( | Coeff | B0, | |
| Coeff | B1, | |||
| Coeff | B2, | |||
| Coeff | A1, | |||
| Coeff | A2 | |||
| ) | [inline] |
| void SPUC::iir_2nd< Numeric, Coeff >::set_round_bits | ( | long | x | ) | [inline] |
Coeff SPUC::iir_2nd< Numeric, Coeff >::a1 [protected] |
Coeff SPUC::iir_2nd< Numeric, Coeff >::a2 [protected] |
Coeff SPUC::iir_2nd< Numeric, Coeff >::b0 [protected] |
Coeff SPUC::iir_2nd< Numeric, Coeff >::b1 [protected] |
Coeff SPUC::iir_2nd< Numeric, Coeff >::b2 [protected] |
| Numeric SPUC::iir_2nd< Numeric, Coeff >::fb0 |
| Numeric SPUC::iir_2nd< Numeric, Coeff >::fb1 |
| Numeric SPUC::iir_2nd< Numeric, Coeff >::fb2 |
Numeric SPUC::iir_2nd< Numeric, Coeff >::in[3] [protected] |
quantiser<Coeff> SPUC::iir_2nd< Numeric, Coeff >::Q [protected] |
long SPUC::iir_2nd< Numeric, Coeff >::round_bits [protected] |
1.4.7