fftw_create_window_data

 

Description

Generate window signal.

Syntax

int fftw_create_window_data( int nSize, double * vWindow, int nWindowMethod = RECTANGLE_WIN, double dAlpha = 0, double dBeta = 0 )

Parameters

nSize
[input] number of points of the window
vWindow
[output] the result of window signal
nWindowMethod
[input] the window method, now it can be one of the following
RECTANGLE_WIN = 0, Create a Rectangle Window
WELCH_WIN, Create a Welch Window
TRIANGULAR_EIN, Create a Triangular Window
BARTLETT_WIN, Create a Bartlett Window
HANNING_WIN, Create a Hanning Window
HAMMING_WIN, Create a Hamming Window
BLACKMAN_WIN, Create a Blackman Window
GAUSSIAN_WIN, Create a Gaussian Window
KAISER_WIN, Create a Kaiser Window
PARZEN_WIN, Create a Parzen Window
dAlpha
[input]Alpha value for Gaussian window, As Alpha increases, the width of the Gaussian window will decrease
dBeta
[input]Belta value for Kaiser window

Return

Returns 0 for success or error codes for failure.

Examples

EX1

#include <..\OriginLab\fft.h>
void fftw_create_window_data_ex1()
{
    vector vWin(8);
    fftw_create_window_data(8, vWin, HAMMING_WIN);
}

Remark

See Also

Header to Include

fft.h

Reference