# KsrWin

Advanced Analysis Library Only

AnalysisLibErrType KsrWin (double arrayX[], int numberOfElements, double beta);

## Purpose

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.

## Parameters

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.
beta | Window
0.00 | Rectangular
1.33 | Triangle
3.86 | Hanning
4.86 (Default) | Hamming
7.04 | Blackman
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.

## 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.