...
Code Block |
---|
typedef struct _ModuleLMS { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 maxTaps; // Maximum length of the filter INT32 numTaps; // Current length of the filter FLOAT32 mu; // Adaptation constant INT32 stateIndex; // Index of the oldest state variable in the array of state variables FLOAT32* coeffs; // Coefficient array FLOAT32* state; // State variable array } ModuleLMSClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
maxTaps | int | const | 0 | 1024 | 1:1:5000 | samples |
numTaps | int | parameter | 0 | 32 | 1:1:1024 | samples |
mu | float | parameter | 0 | 0 | 0:1 | linear |
stateIndex | int | state | 1 | 0 | Unrestricted | |
coeffs | float* | parameter | 0 | [1024 x 1] | Unrestricted | |
state | float* | state | 1 | [1027 x 1] | Unrestricted |
Pins
Input Pins
Name: dataIn
Description: Filter inputDesired filter output
Data type: float
Channel range: 1
...
Name: reference
Description: Reference Filter input: desired filter output
Data type: float
Channel range: 1
...