Basis aansturing projectgroep 3
Dependencies: Biquad HIDScope MODSERIAL QEI mbed
BiQuadChain Class Reference
The BiQuadChain class implements a chain of BiQuad filters. More...
#include <BiQuad.h>
Public Member Functions | |
BiQuadChain & | add (BiQuad *bq) |
Add a BiQuad pointer to the list: bqc.add(&bq);. | |
double | step (double x) |
Execute a digital time step cascaded through all bq's. | |
std::vector< std::complex < double > > | poles () |
Return poles of the BiQuad filter. | |
std::vector< std::complex < double > > | zeros () |
Return zeros of the BiQuad filter. | |
bool | stable () |
Is this biquad-chain stable? Checks if all poles lie within the unit-circle. | |
BiQuadChain & | operator* (BiQuad &bq) |
Appends a BiQuad to the chain Shorthand for .add(&bq) |
Detailed Description
The BiQuadChain class implements a chain of BiQuad filters.
Definition at line 161 of file BiQuad.h.
Member Function Documentation
BiQuadChain & add | ( | BiQuad * | bq ) |
Add a BiQuad pointer to the list: bqc.add(&bq);.
- Parameters:
-
bq Pointer to BiQuad instance
- Returns:
- Pointer to BiQuadChain
Definition at line 101 of file BiQuad.cpp.
BiQuadChain & operator* | ( | BiQuad & | bq ) |
Appends a BiQuad to the chain Shorthand for .add(&bq)
- Parameters:
-
bq BiQuad
- Returns:
- Pointer to BiQuadChain
Definition at line 157 of file BiQuad.cpp.
std::vector< std::complex< double > > poles | ( | ) |
Return poles of the BiQuad filter.
- Returns:
- vector of std::complex poles
Definition at line 142 of file BiQuad.cpp.
bool stable | ( | ) |
Is this biquad-chain stable? Checks if all poles lie within the unit-circle.
- Returns:
- boolean whether the chain is stable or not
Definition at line 150 of file BiQuad.cpp.
double step | ( | double | x ) |
Execute a digital time step cascaded through all bq's.
- Parameters:
-
x Input of the filter chain
- Returns:
- Output of the chain
Definition at line 112 of file BiQuad.cpp.
std::vector< std::complex< double > > zeros | ( | ) |
Return zeros of the BiQuad filter.
- Returns:
- vector of std::complex zeros
Definition at line 146 of file BiQuad.cpp.
Generated on Thu Jul 14 2022 07:24:36 by 1.7.2