Advanced Analysis Library Only
AnalysisLibErrType KsrWin (double arrayX[], int numberOfElements, double beta);
Applies a Kaiser window to the input signal. The following formula defines the Kaiser window:
for i = 0, 1, . . ., n — 1
where | ![]() |
Io = the zeroth–order modified Bessel function of the first kind |
KsrWin obtains the output signal using the following formula:
xi = xi × wi
for i = 0, 1, . . ., n — 1
KsrWin performs the window operation in place; that is, the windowed data replaces the input data.
Input | ||||||||||||||
Name | Type | Description | ||||||||||||
numberOfElements | integer | Number of elements in the input array, arrayX. | ||||||||||||
beta | double-precision | Shape used in the Kaiser window function. A larger beta results a narrower window.
For more information, refer to Discrete-Time Signal Processing by Oppenheim and Schafer, cited in the Bibliography. |
||||||||||||
Output | ||||||||||||||
Name | Type | Description | ||||||||||||
arrayX | double-precision array | On input, the input signal. On output, the signal smoothed by the Kaiser window. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |