SPUC
3.0
|
#include <iir_shelf.h>
Public Member Functions | |
iir_shelf (Coeff A0, Coeff A1, Coeff B, long rb=0) | |
iir_shelf (float_type ca, float_type cb) | |
void | set (float_type ca, float_type cb) |
Coeff | get_a0 () |
Coeff | get_a1 () |
Coeff | get_b () |
Numeric | clock (Numeric input) |
Input new sample and calculate output. More... | |
void | set_round_bits (long x) |
int | get_round_bits () |
void | reset () |
Reset. More... | |
Protected Attributes | |
long | round_bits |
Coeff | b |
Coeff | a0 |
Coeff | a1 |
Numeric | out |
Numeric | previous_out |
Numeric | previous_in |
quantiser< Numeric > | Q |
Template for shelving filter
The filter is assumed of the form which becomes
|
inline |
|
inline |
|
inline |
Input new sample and calculate output.
References SPUC::iir_shelf< Numeric, Coeff >::out, SPUC::iir_shelf< Numeric, Coeff >::previous_in, and SPUC::iir_shelf< Numeric, Coeff >::Q.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reset.
Referenced by SPUC::iir_shelf< Numeric, Coeff >::iir_shelf(), and SPUC::iir_shelf< Numeric, Coeff >::set().
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by SPUC::iir_shelf< Numeric, Coeff >::clock().
|
protected |
Referenced by SPUC::iir_shelf< Numeric, Coeff >::clock().
|
protected |
|
protected |
Referenced by SPUC::iir_shelf< Numeric, Coeff >::clock().
|
protected |