fft_fft_sine

 

Description

computes the discrete Sine transform of iSize real data values.

Syntax

int fft_fft_sine( int iSize, double * vSig )

Parameters

iSize
[input] the number of data values.
vSig
[modify] the input data squences, and the result of Sine transforms

Return

Returns 0 for success or error codes for failure.

Examples

EX1

//Assume the current Worksheet has 2 columns, the first column contains 8 data. This piece
//of code computes the discrete Fourier sine transform of 8 real data values. The result
//is output into the second column.

#include <..\originlab\fft.h>

void TEST_fft_fft_sine()
{
    int n= 8, success;
    Worksheet wks = Project.ActiveLayer();
    if(wks)
    {
        Dataset xx(wks, 0);
        Dataset dx(wks, 1);
        dx.SetSize(n);
    
        vector x = xx;
        success = fft_fft_sine(n, x);
        //Output the result into the second column.
        dx = x;
    }
}

Remark

See Also

fft_fft_cosine

header to Include

fft.h

Reference