HanWin

Advanced Analysis Library Only

AnalysisLibErrType HanWin (double arrayX[], int numberOfElements);

Purpose

Applies a Hanning window to the input signal. The following formula defines the Hanning window:

for i = 0, 1, . . ., n — 1

HanWin obtains the output signal using the following formula:

xi = xi × wi

for i = 0, 1, . . ., n — 1

HanWin 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.
Output
Name Type Description
arrayX double-precision array On input, the input signal.

On output, the signal smoothed by the Hanning 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.