RT-WDF
0.0.1
Real-time Wave Digital Filter Framework
|
#include <rt-wdf.h>
Public Member Functions | |
wdfRootRtype (int numSubtrees) | |
~wdfRootRtype () | |
virtual void | processAscendingWaves (vec *ascendingWaves, vec *descendingWaves) |
virtual matData * | getRootMatrPtr () |
virtual std::string | getType () const |
void | setPortResistances (double *Rp) |
wdfRootRtype::wdfRootRtype | ( | int | numSubtrees | ) |
R-type root implementation.
numSubtrees | specifies the number of subtrees which are connected to the root to correctly allocate memory for rootMatrixData |
wdfRootRtype::~wdfRootRtype | ( | ) |
Deconstructor
|
virtual |
Function that returns a pointer to the rootMatrixData element.
The pointer is be used to populate or update the S-Matrix of the R-type adapter by the setRootMatrData() function of the tree.
Reimplemented from wdfRoot.
|
virtual |
Returns a String describing the type of this root.
Implements wdfRoot.
|
virtual |
Function to process a vector of ascending waves in the root and return the descending result.
Scatters the incoming waves according to the S-Matrix of rootMatrixData.
*ascendingWaves | is a pointer to a vector of waves that were collected at the upfacing ports of the subtrees, traveling into the root. |
*descendingWaves | is a pointer to a vector to store the resulting waves that leave the root afterprocessing into the subtrees |
Implements wdfRoot.
|
inherited |
Function that does nothing if not overwritten by a method in a subclass.
Acts as an interface towards the tree to do anything with the subtree's upfacing port resistances in the root. Is called during adaptation of the WDF structure.
Rp | is a vector of port resistances of all subtrees of the root. |