Advanced Analysis Library Only
AnalysisLibErrType Bw_HPF (double inputArray[], int numElements, double samplingFreq, double cutoffFreq, int order, double outputArray[]);
Filters the input array using a Butterworth highpass digital filter. Bw_HPF can perform the operation in place; that is, the input and output arrays can be the same.
/* Generate a random signal and filter it using a fifth-order highpass Butterworth filter. */
double x[256], y[256], fs, fc;
n, order;
int status;
n = 256;
fs = 1000.0;
fc = 200.0;
order = 5;
Uniform (n, 17, x);
status = Bw_HPF (x, n, fs, fc, order, y);
Input | ||
Name | Type | Description |
inputArray | double-precision array | Array containing the raw data to filter. |
numElements | integer | Number of elements in both the input and output array. |
samplingFreq | double-precision | Sampling frequency in Hertz. |
cutoffFreq | double-precision | Cutoff frequency of the filter in Hertz. |
order | integer | Filter order. Default Value: 5. |
Output | ||
Name | Type | Description |
outputArray | double-precision array | Filtered data. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |