computes the discrete Sine transform of iSize real data values.
int fft_fft_sine( int iSize, double * vSig )
Returns 0 for success or error codes for failure.
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; } }
fft_fft_cosine
fft.h