MFFM FFTw Wrapper
|
class real2DFFTData controls and manipulates real 2D fft data More...
#include <real2DFFT.H>
Public Member Functions | |
real2DFFTData (int r, int c) | |
Constructor with all memory to be allocated internally. | |
~real2DFFTData () | |
Deconstructor. | |
int | getXSize () |
The row count. | |
int | getYSize () |
The column count. | |
int | getXHalfSize () |
The half row count. | |
int | getYHalfSize () |
The half column count. | |
void | reScale (void) |
Scales the output down by the number of elements. | |
void | compPowerSpec () |
This function computes the power spectrum and updates the totalPower, maxPower and minPower. | |
void | compLogPowerSpec () |
Finds 10*log10(power spectrum) and updates the totalPower, maxPower and minPower. | |
void | timeSpecAverage () |
Updates timeXSum. | |
void | complexSpecAverage () |
Updates realXSum and imagXSum. | |
void | powerSpecAverage () |
void | findYSum (int start, int stop) |
Finds the y-sum between columns start and stop. | |
void | findYMax (void) |
Finds the y-max for the ySum array, updates ySumMin, ySumMax, maxYSumIndex. | |
void | clearInput (void) |
Zeros the in array. | |
void | clearOutput (void) |
Zeros the out awway. | |
Public Attributes | |
fftw_real * | in |
The input data and power spectrum. | |
fftw_real * | power |
fftw_complex * | out |
The output data. | |
fftw_real * | xSum |
Arrays which sum across rows (x) and columns (y) | |
fftw_real * | ySum |
fftw_real * | timeXSum |
A sum across the input time signal. | |
fftw_real * | realXSum |
Power spectral sums across rows (x) and columns (y) | |
fftw_real * | imagXSum |
double | totalPower |
The total power in the power spectrum, the maximum and minimum powers too. | |
double | maxPower |
double | minPower |
double | xSumMin |
The minimum/maximum row (x) and column (y) sums. | |
double | xSumMax |
double | ySumMin |
double | ySumMax |
int | maxXSumIndex |
Row (x) and Column (y) max sum indexes. | |
int | maxYSumIndex |
class real2DFFTData controls and manipulates real 2D fft data
Definition at line 36 of file real2DFFT.H.
|
inline |
Zeros the in array.
Definition at line 96 of file real2DFFT.H.
References in.
|
inline |
Zeros the out awway.
Definition at line 98 of file real2DFFT.H.
References out.
|
inline |
The half row count.
Definition at line 72 of file real2DFFT.H.
|
inline |
|
inline |
The half column count.
Definition at line 74 of file real2DFFT.H.
|
inline |
void real2DFFTData::powerSpecAverage | ( | ) |
Finds the power Spectrum averages and updates the xSumMin, xSumMax, ySumMin, ySumMax, xSum, ySum, maxXSumIndex, maxYSumIndex
fftw_real * real2DFFTData::imagXSum |
Definition at line 53 of file real2DFFT.H.
fftw_real* real2DFFTData::in |
The input data and power spectrum.
Definition at line 45 of file real2DFFT.H.
Referenced by clearInput().
double real2DFFTData::maxPower |
Definition at line 56 of file real2DFFT.H.
int real2DFFTData::maxXSumIndex |
Row (x) and Column (y) max sum indexes.
Definition at line 60 of file real2DFFT.H.
int real2DFFTData::maxYSumIndex |
Definition at line 60 of file real2DFFT.H.
double real2DFFTData::minPower |
Definition at line 56 of file real2DFFT.H.
fftw_complex* real2DFFTData::out |
fftw_real * real2DFFTData::power |
Definition at line 45 of file real2DFFT.H.
fftw_real* real2DFFTData::realXSum |
Power spectral sums across rows (x) and columns (y)
Definition at line 53 of file real2DFFT.H.
fftw_real* real2DFFTData::timeXSum |
A sum across the input time signal.
Definition at line 51 of file real2DFFT.H.
double real2DFFTData::totalPower |
The total power in the power spectrum, the maximum and minimum powers too.
Definition at line 56 of file real2DFFT.H.
fftw_real* real2DFFTData::xSum |
Arrays which sum across rows (x) and columns (y)
Definition at line 49 of file real2DFFT.H.
double real2DFFTData::xSumMax |
Definition at line 58 of file real2DFFT.H.
double real2DFFTData::xSumMin |
The minimum/maximum row (x) and column (y) sums.
Definition at line 58 of file real2DFFT.H.
fftw_real * real2DFFTData::ySum |
Definition at line 49 of file real2DFFT.H.
double real2DFFTData::ySumMax |
Definition at line 58 of file real2DFFT.H.
double real2DFFTData::ySumMin |
Definition at line 58 of file real2DFFT.H.