17 #ifndef COMPLEXFFTDATA_H_ 18 #define COMPLEXFFTDATA_H_ 59 #endif // COMPLEXFFTDATADATA_H_ int sqrtPowerSpec()
This function computes the square root of the power spectrum and returns the max bin.
int limitHalfPowerSpec(double lim)
Limits the maximum to 'lim' and returns the last fft bin with max.
fftw_real * power_spectrum
the power_spectrum array
int compPowerSpec()
This function computes the power spectrum and returns the max bin.
fftw_complex * in
the input and output arrays
int getSize()
Returns the number of elements in the input and output arrays.
int size
Specifies the size of the data array.
void switchData(ComplexFFTData *d)
Use this to change associated fft data (for fft'ing)
~ComplexFFTData(void)
Deconstructor.
ComplexFFTData(int sz)
Constructor with all memory to be allocated internally.
double totalPower
The total power (summed) of the power spectrum as used in the method compPowerSpec.
int minPowerBin
Specifies the minimum and maximum power bins as used in the methods findMaxMinPowerBins and compPower...
class ComplexFFTData controls and manipulates complex fft data
#define fftw_real
use double by default