61 printf(
"RealFFT::fwdTransform : data not present, please switch data");
68 printf(
"RealFFT::invTransform : data not present, please switch data");
74 #ifdef HAVE_EMSCRIPTEN 75 #include <emscripten/bind.h> 76 EMSCRIPTEN_BINDINGS(RealFFT_ex) {
77 emscripten::class_<RealFFT>(
"RealFFT")
void createPlan(void)
Method to create the plans.
void invTransform()
Inverse transform the data (out to in)
int getSize(void)
Returns the number of elements in the input and output arrays.
fftw_plan fwdPlan
The fwd/inv plans.
RealFFTData * data
The pointer to the relevant data.
virtual ~RealFFT(void)
fft deconstructor
class RealFFTData controls and manipulates fft data
void fwdTransform()
Forward transform the data (in to out)
fftw_real * in
the input, output and power_spectrum arrays
RealFFT(void)
fft init ... don't forget to associate data using switchData
void switchData(RealFFTData *d)
Use this to change associated fft data (for fft'ing)
void destroyPlan(void)
Method to destroy the plans.