LASP 1.0
Library for Acoustic Signal Processing
|
A set of Biquad filters in series. More...
#include <lasp_biquadbank.h>
Public Member Functions | |
SeriesBiquad (const vd &filter_coefs) | |
Initalize a SeriesBiquad filter. | |
virtual void | filter (vd &inout) override final |
Filter input, and provides output in same array as input. | |
virtual | ~SeriesBiquad () override |
void | reset () override final |
Reset filter state to 0 (history was all-zero). | |
std::unique_ptr< Filter > | clone () const override final |
Clone a filter, to generate a copy. | |
Public Member Functions inherited from Filter | |
virtual | ~Filter ()=0 |
Static Public Member Functions | |
static SeriesBiquad | firstOrderHighPass (const d fs, const d cuton_Hz) |
Create a SeriesBiquad object for a first order high-pass filter. | |
A set of Biquad filters in series.
Definition at line 13 of file lasp_biquadbank.h.
SeriesBiquad::SeriesBiquad | ( | const vd & | filter_coefs | ) |
Initalize a SeriesBiquad filter.
filter_coefs | Filter coefficients, should be given in the order as [b0, b1, b2, a0==1, a1, a2, b0,...] |
Initialize state to zero
Check if third row in this matrix equals unity.
Definition at line 13 of file lasp_biquadbank.cpp.
|
inlineoverridevirtual |
Definition at line 40 of file lasp_biquadbank.h.
|
finaloverridevirtual |
Clone a filter, to generate a copy.
Implements Filter.
Definition at line 83 of file lasp_biquadbank.cpp.
|
finaloverridevirtual |
Filter input, and provides output in same array as input.
inout | Vector of input / output samples. |
Implementation is based on Proakis & Manolakis - Digital Signal Processing, Fourth Edition, p. 550
Implements Filter.
Definition at line 91 of file lasp_biquadbank.cpp.
|
static |
Create a SeriesBiquad object for a first order high-pass filter.
fs | Sampling frequency [Hz] |
cuton_Hz | Cuton-frequency [Hz] |
Definition at line 45 of file lasp_biquadbank.cpp.
|
finaloverridevirtual |
Reset filter state to 0 (history was all-zero).
Implements Filter.
Definition at line 87 of file lasp_biquadbank.cpp.