SymWin

Advanced Analysis Library Only

AnalysisLibErrType SymWin (double arrayX[], int numberOfElements, int windowType, double windowParameter);

Purpose

Applies a symmetric window to a real signal. Symmetric windows are often used in digital filter design, whereas asymmetrical windows are often used in spectrum estimation. For a given window type, the coefficients of the n-point asymmetrical window are the same as the first n coefficients of the (n+1)-point symmetric window.

Parameters

Input
Name Type Description
numberOfElements integer The number of elements in arrayX.
windowType integer The type of window to apply. windowType must be one of the following values:
  • RECTANGLE (0)
  • HANNING (1)
  • HAMMING (2)
  • BLKHARRIS (3)
  • EXBLKMAN (4)
  • BLKMAN (5)
  • FLATTOP (6)
  • BH4TERM (7)
  • BH7TERM (8)
  • LOWSIDELB (9)
  • BLKMANNUTTALL (11)
  • TRIANGLE (30)
  • KAISER (60)
  • DOLCHEBYSHEV (61)
  • GAUSSIAN (62)
windowParameter double-precision The window parameter. This parameter is referenced only if windowType is one of the following values:
  • KAISER: windowParameter is beta.
  • GAUSSIAN: windowParameter is the standard deviation. If windowParameter < 0, the function uses 0.2 for windowParameter instead.
  • DOLCHEBYSHEV: windowParameter is the ratio of the mainlobe to the sidelobe, in dB. If windowParameter < 0, the function uses 60dB for windowParameter instead.
Output
Name Type Description
arrayX double-precision array On input, the input signal. On output, the output signal with the selected 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.