Diagonaal berekenen lukt, meerdere outputs nog niet

Dependencies:   mbed FastPWM HIDScope MODSERIAL QEI

Embed: (wiki syntax)

« Back to documentation index

BiQuadChain Class Reference

BiQuadChain Class Reference

The BiQuadChain class implements a chain of BiQuad filters. More...

#include <BiQuad.h>

Public Member Functions

BiQuadChainadd (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.
BiQuadChainoperator* (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:
bqPointer 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:
bqBiQuad
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:
xInput 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.