28#define fftw_real double
34 int deleteInOutMemory;
41 fftw_real *
in, *out, *power_spectrum;
class realFFTData controls and manipulates fft data
fftw_real findMaxIn(void)
Returns the maximum input variable.
fftw_real * in
the input, output and power_spectrum arrays
int compPowerSpec()
This function computes the power spectrum and returns the max bin.
realFFTData(int sz, fftw_real *inp, fftw_real *outp)
input and output data arrays are to be allocated by another process
void zeroFFTData(void)
This function zeros the output data array (out)
realFFTData(int sz)
All memory to be allocated internally.
int limitHalfPowerSpec(double lim)
Limits the maximum to 'lim' and returns the last fft bin with max.
int minPowerBin
Specifies the minimum and maximum power bins as used in the methods findMaxMinPowerBins and compPower...
int sqrtPowerSpec()
This function computes the square root of the power spectrum and returns the max bin.
~realFFTData(void)
Deconstructor.
int getHalfSize(void)
Returns the number of elements in the power spectrum array.
double totalPower
The total power (summed) of the power spectrum as used in the method compPowerSpec.
int getSize(void)
Returns the number of elements in the input and output arrays.
void findMaxMinPowerBins(void)
Fills the max and min power spectrum bins.
int size
Specifies the size of the data array.