Advanced Analysis Library Only
AnalysisLibErrType WindFIR_Filter (int filterType, double samplingFrequency, double lowerCutoffFreq, double upperCutoffFreq, int numberOfCoefficients, int windowType, double windowParameter, double coefficients[]);
Generates windowed FIR filter coefficients. This function computes only FIR coefficients. You can call a convolution function on the computed coefficients and the signal to perform actual data filtering.
| Input | ||
| Name | Type | Description |
| filterType | integer | The type of filter. filterType must be one of the following values:
|
| samplingFrequency | double-precision | Sampling frequency, in Hz. |
| lowerCutoffFreq | double-precision | The cutoff frequency for LOWPASS or HIGHPASS filters, or the low cutoff frequency for BANDPASS or BANDSTOP filters, in Hz. |
| upperCutoffFreq | double-precision | The high cutoff frequency for BANDPASS or BANDSTOP filters. This parameter is not referenced if filterType is LOWPASS or HIGHPASS. |
| numberOfCoefficients | integer | The total number of FIR filter coefficients. |
| windowType | integer | The type of window to apply. windowType must be one of the following values:
|
| windowParameter | double-precision | The window parameter. This parameter is referenced only if windowType is one of the following values:
|
| Output | ||
| Name | Type | Description |
| coefficients | double-precision array | The computed windowed FIR coefficients. |
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |