![]() |
gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
class Real2DFFTData controls and manipulates real 2D fft data More...
#include <Real2DFFTData.H>
Public Member Functions | |
| Real2DFFTData (int r, int c) | |
| Constructor with all memory to be allocated internally. More... | |
| ~Real2DFFTData () | |
| Deconstructor. More... | |
| int | getXSize () |
| The row count. More... | |
| int | getYSize () |
| The column count. More... | |
| int | getXHalfSize () |
| The half row count. More... | |
| int | getYHalfSize () |
| The half column count. More... | |
| void | reScale (void) |
| Scales the output down by the number of elements. More... | |
| void | compPowerSpec () |
| This function computes the power spectrum and updates the totalPower, maxPower and minPower. More... | |
| int | sqrtPowerSpec () |
| This function computes the square root of the power spectrum and returns the max bin. More... | |
| void | compLogPowerSpec () |
| Finds 10*log10(power spectrum) and updates the totalPower, maxPower and minPower. More... | |
| void | timeSpecAverage () |
| Updates timeXSum. More... | |
| void | complexSpecAverage () |
| Updates realXSum and imagXSum. More... | |
| void | powerSpecAverage () |
| void | findYSum (int start, int stop) |
| Finds the y-sum between columns start and stop. More... | |
| void | findYMax (void) |
| Finds the y-max for the ySum array, updates ySumMin, ySumMax, maxYSumIndex. More... | |
| void | clearInput (void) |
| Zeros the in array. More... | |
| void | clearOutput (void) |
| Zeros the out awway. More... | |
Public Attributes | |
| fftw_real * | in |
| The input data and power spectrum. More... | |
| fftw_real * | power |
| fftw_complex * | out |
| The output data. More... | |
| fftw_real * | xSum |
| Arrays which sum across rows (x) and columns (y) More... | |
| fftw_real * | ySum |
| fftw_real * | timeXSum |
| A sum across the input time signal. More... | |
| fftw_real * | realXSum |
| Power spectral sums across rows (x) and columns (y) More... | |
| fftw_real * | imagXSum |
| double | totalPower |
| The total power in the power spectrum, the maximum and minimum powers too. More... | |
| double | maxPower |
| double | minPower |
| double | xSumMin |
| The minimum/maximum row (x) and column (y) sums. More... | |
| double | xSumMax |
| double | ySumMin |
| double | ySumMax |
| int | maxXSumIndex |
| Row (x) and Column (y) max sum indexes. More... | |
| int | maxYSumIndex |
Private Member Functions | |
| void | memDeInit (void) |
| Free the memory. More... | |
Private Attributes | |
| int | x |
| x=row y=column More... | |
| int | y |
| fftw_real * | mem |
| The total memory used by this class. More... | |
class Real2DFFTData controls and manipulates real 2D fft data
Definition at line 24 of file Real2DFFTData.H.
| Real2DFFTData::Real2DFFTData | ( | int | r, |
| int | c | ||
| ) |
Constructor with all memory to be allocated internally.
Definition at line 24 of file Real2DFFTData.C.
| Real2DFFTData::~Real2DFFTData | ( | ) |
Deconstructor.
Definition at line 61 of file Real2DFFTData.C.
| void Real2DFFTData::clearInput | ( | void | ) |
Zeros the in array.
Definition at line 247 of file Real2DFFTData.C.
| void Real2DFFTData::clearOutput | ( | void | ) |
Zeros the out awway.
Definition at line 251 of file Real2DFFTData.C.
| void Real2DFFTData::complexSpecAverage | ( | ) |
Updates realXSum and imagXSum.
Definition at line 201 of file Real2DFFTData.C.
| void Real2DFFTData::compLogPowerSpec | ( | ) |
Finds 10*log10(power spectrum) and updates the totalPower, maxPower and minPower.
Definition at line 130 of file Real2DFFTData.C.
| void Real2DFFTData::compPowerSpec | ( | ) |
This function computes the power spectrum and updates the totalPower, maxPower and minPower.
Definition at line 88 of file Real2DFFTData.C.
| void Real2DFFTData::findYMax | ( | void | ) |
Finds the y-max for the ySum array, updates ySumMin, ySumMax, maxYSumIndex.
Definition at line 175 of file Real2DFFTData.C.
| void Real2DFFTData::findYSum | ( | int | start, |
| int | stop | ||
| ) |
Finds the y-sum between columns start and stop.
Definition at line 161 of file Real2DFFTData.C.
|
inline |
The half row count.
Definition at line 60 of file Real2DFFTData.H.
|
inline |
The row count.
Definition at line 56 of file Real2DFFTData.H.
|
inline |
The half column count.
Definition at line 62 of file Real2DFFTData.H.
|
inline |
The column count.
Definition at line 58 of file Real2DFFTData.H.
|
private |
Free the memory.
Definition at line 66 of file Real2DFFTData.C.
| void Real2DFFTData::powerSpecAverage | ( | ) |
Finds the power Spectrum averages and updates the xSumMin, xSumMax, ySumMin, ySumMax, xSum, ySum, maxXSumIndex, maxYSumIndex
Definition at line 216 of file Real2DFFTData.C.
| void Real2DFFTData::reScale | ( | void | ) |
Scales the output down by the number of elements.
Definition at line 80 of file Real2DFFTData.C.
| int Real2DFFTData::sqrtPowerSpec | ( | ) |
This function computes the square root of the power spectrum and returns the max bin.
Definition at line 113 of file Real2DFFTData.C.
| void Real2DFFTData::timeSpecAverage | ( | ) |
Updates timeXSum.
Definition at line 188 of file Real2DFFTData.C.
| fftw_real * Real2DFFTData::imagXSum |
Definition at line 41 of file Real2DFFTData.H.
| fftw_real* Real2DFFTData::in |
The input data and power spectrum.
Definition at line 33 of file Real2DFFTData.H.
| double Real2DFFTData::maxPower |
Definition at line 44 of file Real2DFFTData.H.
| int Real2DFFTData::maxXSumIndex |
Row (x) and Column (y) max sum indexes.
Definition at line 48 of file Real2DFFTData.H.
| int Real2DFFTData::maxYSumIndex |
Definition at line 48 of file Real2DFFTData.H.
|
private |
The total memory used by this class.
Definition at line 28 of file Real2DFFTData.H.
| double Real2DFFTData::minPower |
Definition at line 44 of file Real2DFFTData.H.
| fftw_complex* Real2DFFTData::out |
| fftw_real * Real2DFFTData::power |
Definition at line 33 of file Real2DFFTData.H.
| fftw_real* Real2DFFTData::realXSum |
Power spectral sums across rows (x) and columns (y)
Definition at line 41 of file Real2DFFTData.H.
| fftw_real* Real2DFFTData::timeXSum |
A sum across the input time signal.
Definition at line 39 of file Real2DFFTData.H.
| double Real2DFFTData::totalPower |
The total power in the power spectrum, the maximum and minimum powers too.
Definition at line 44 of file Real2DFFTData.H.
|
private |
x=row y=column
Definition at line 26 of file Real2DFFTData.H.
| fftw_real* Real2DFFTData::xSum |
Arrays which sum across rows (x) and columns (y)
Definition at line 37 of file Real2DFFTData.H.
| double Real2DFFTData::xSumMax |
Definition at line 46 of file Real2DFFTData.H.
| double Real2DFFTData::xSumMin |
The minimum/maximum row (x) and column (y) sums.
Definition at line 46 of file Real2DFFTData.H.
|
private |
Definition at line 26 of file Real2DFFTData.H.
| fftw_real * Real2DFFTData::ySum |
Definition at line 37 of file Real2DFFTData.H.
| double Real2DFFTData::ySumMax |
Definition at line 46 of file Real2DFFTData.H.
| double Real2DFFTData::ySumMin |
Definition at line 46 of file Real2DFFTData.H.
|
GTK+ IOStream
Beta
|