TriWin

Advanced Analysis Library Only

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

Purpose

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

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

TriWin obtains the output signal using the following formula:

xi = xi × wi

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

TriWin 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 Triangular 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.