Advanced Analysis Library Only
AnalysisLibErrType CosTaperedWinEx (double arrayX[], int numberOfElements, double ratio);
Applies a cosine tapered window to a real signal. A cosine tapered window is defined as follows:
where n is the number of elements in arrayX, and .
Input | ||
Name | Type | Description |
numberOfElements | integer | The number of elements in arrayX. |
ratio | double-precision | The ratio of the total length of the tapered section to the whole signal length. The window is a cosine tapered window only if 0 < ratio < 1. If ratio <=0, the window is equivalent to a rectangular window. If ratio >=1, the window is equivalent to a Hanning window. |
Output | ||
Name | Type | Description |
arrayX | double-precision array | On input, the input signal. On output, the output signal with a cosine tapered window applied. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |