18 #ifndef REALFFTDATA_H_
19 #define REALFFTDATA_H_
28 #define fftw_real double
34 int deleteInOutMemory;
41 fftw_real *
in, *out, *power_spectrum;
53 int limitHalfPowerSpec(
double lim);
58 int getHalfSize(
void){
if (!(size%2))
return size/2;
else return size/2+1;}
61 fftw_real findMaxIn(
void);
63 void findMaxMinPowerBins(
void);
73 void zeroFFTData(
void);
75 #endif // REALFFTDATA_H_
int getHalfSize(void)
Returns the number of elements in the power spectrum array.
int minPowerBin
Specifies the minimum and maximum power bins as used in the methods findMaxMinPowerBins and compPower...
int getSize(void)
Returns the number of elements in the input and output arrays.
class realFFTData controls and manipulates fft data
int size
Specifies the size of the data array.
fftw_real * in
the input, output and power_spectrum arrays
double totalPower
The total power (summed) of the power spectrum as used in the method compPowerSpec.