Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope_motor_ff QEI mbed FastPWM MODSERIAL
Fork of HID_scope_test by
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 Sun Jul 17 2022 15:01:00 by
1.7.2
