This is an example of how to use the class.
#include <fstream>
#include <iostream>
using namespace std;
#include "complexFFT.H"
int main (){
int count =8;
for (int i=0;i<count;i++){
c_re(fftData.
in[i])=(double)i;
c_im(fftData.
in[i])=(double)i+5.0;
}
fftw_real *temp=&c_re(fftData.
in[0]);
for (int i=0; i<count; i++)
cout << temp[i]<<endl;
for (int i=0; i<count; i++)
}
class complexFFTData controls and manipulates complex fft data
fftw_complex * in
the input and output arrays
fftw_real * power_spectrum
the power_spectrum array
int compPowerSpec()
This function computes the power spectrum and returns the max bin.
class complexFFT controls fftw plans and executes fwd/inv transforms
void fwdTransform()
Forward transform the data (in to out)
void invTransform()
Inverse transform the data (out to in)