GenCosWin
Advanced Analysis Library Only
AnalysisLibErrType GenCosWin (double arrayX[], ssize_t numberOfXElements, double aArray[], int numberOfAElements);
Purpose
Applies a general cosine window to a real signal. If a represents aArray and Y represents the output sequence, GenCosWin obtains the elements of y using the following equation:
for i = 0, 1, 2, ..., n – 1
where na is the number of coefficients and n is the number of elements in arrayX.
This function performs the window operation in place; that is, the windowed data replaces the input data.
Parameters
| Input | ||
| Name | Type | Description |
| numberOfXElements | ssize_t | Number of elements in arrayX. |
| aArray | double [] | Coefficients used in the general cosine window. |
| numberOfAElements | int | Number of elements in aArray. |
| Output | ||
| Name | Type | Description |
| arrayX | double [] | On input, the input signal. On output, the signal after GenCosWin applies the general cosine window. |
Return Value
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |
Additional Information
Library: Advanced Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 3.1 and later