Admin Production ni-theme
Current Publication

CxGaussWin

LabWindows/CVI

CxGaussWin

Advanced Analysis Library Only

AnalysisLibErrType CxGaussWin (NIComplexNumber arrayX[], ssize_t numberOfElements, double standardDeviation);

Purpose

Applies a Gaussian window to a complex input signal. If y represents the output sequence arrayX, CxGaussWin obtains the elements of y using the following equation:

where n is the number of elements in arrayX and σ is the standard deviation of the Gaussian window.

This function applies an unsymmetric Gaussian window on the input signal. If you want to use a symmetric Gaussian window, call SymWin instead.

This function performs the window operation in place; that is, the windowed data replaces the input data.

Parameters

Input
Name Type Description
numberOfElements ssize_t The number of elements in arrayX.
standardDeviation double The standard deviation of the Gaussian window normalized to the length of arrayX. The default value is 0.2. If standardDeviation <= 0, the default value is used.
Output
Name Type Description
arrayX NIComplexNumber [] On input, the input signal.

On output, this parameter returns the input signal with a Gaussian window applied.

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 2012 and later