gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
Real2DFFTData Class Reference

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_realin
 The input data and power spectrum. More...
 
fftw_realpower
 
fftw_complex * out
 The output data. More...
 
fftw_realxSum
 Arrays which sum across rows (x) and columns (y) More...
 
fftw_realySum
 
fftw_realtimeXSum
 A sum across the input time signal. More...
 
fftw_realrealXSum
 Power spectral sums across rows (x) and columns (y) More...
 
fftw_realimagXSum
 
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_realmem
 The total memory used by this class. More...
 

Detailed Description

class Real2DFFTData controls and manipulates real 2D fft data

Examples:
Real2DFFTExample.C.

Definition at line 24 of file Real2DFFTData.H.

Constructor & Destructor Documentation

◆ Real2DFFTData()

Real2DFFTData::Real2DFFTData ( int  r,
int  c 
)

Constructor with all memory to be allocated internally.

Definition at line 24 of file Real2DFFTData.C.

Here is the call graph for this function:

◆ ~Real2DFFTData()

Real2DFFTData::~Real2DFFTData ( )

Deconstructor.

Definition at line 61 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ clearInput()

void Real2DFFTData::clearInput ( void  )

Zeros the in array.

Examples:
Real2DFFTExample.C.

Definition at line 247 of file Real2DFFTData.C.

Here is the caller graph for this function:

◆ clearOutput()

void Real2DFFTData::clearOutput ( void  )

Zeros the out awway.

Examples:
Real2DFFTExample.C.

Definition at line 251 of file Real2DFFTData.C.

Here is the caller graph for this function:

◆ complexSpecAverage()

void Real2DFFTData::complexSpecAverage ( )

Updates realXSum and imagXSum.

Definition at line 201 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compLogPowerSpec()

void Real2DFFTData::compLogPowerSpec ( )

Finds 10*log10(power spectrum) and updates the totalPower, maxPower and minPower.

Definition at line 130 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compPowerSpec()

void Real2DFFTData::compPowerSpec ( )

This function computes the power spectrum and updates the totalPower, maxPower and minPower.

Examples:
Real2DFFTExample.C.

Definition at line 88 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findYMax()

void Real2DFFTData::findYMax ( void  )

Finds the y-max for the ySum array, updates ySumMin, ySumMax, maxYSumIndex.

Definition at line 175 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findYSum()

void Real2DFFTData::findYSum ( int  start,
int  stop 
)

Finds the y-sum between columns start and stop.

Definition at line 161 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getXHalfSize()

int Real2DFFTData::getXHalfSize ( )
inline

The half row count.

Definition at line 60 of file Real2DFFTData.H.

◆ getXSize()

int Real2DFFTData::getXSize ( )
inline

The row count.

Examples:
Real2DFFTExample.C.

Definition at line 56 of file Real2DFFTData.H.

Here is the caller graph for this function:

◆ getYHalfSize()

int Real2DFFTData::getYHalfSize ( )
inline

The half column count.

Definition at line 62 of file Real2DFFTData.H.

Here is the call graph for this function:

◆ getYSize()

int Real2DFFTData::getYSize ( )
inline

The column count.

Examples:
Real2DFFTExample.C.

Definition at line 58 of file Real2DFFTData.H.

Here is the caller graph for this function:

◆ memDeInit()

void Real2DFFTData::memDeInit ( void  )
private

Free the memory.

Definition at line 66 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ powerSpecAverage()

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.

Here is the caller graph for this function:

◆ reScale()

void Real2DFFTData::reScale ( void  )

Scales the output down by the number of elements.

Definition at line 80 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqrtPowerSpec()

int Real2DFFTData::sqrtPowerSpec ( )

This function computes the square root of the power spectrum and returns the max bin.

Examples:
Real2DFFTExample.C.

Definition at line 113 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ timeSpecAverage()

void Real2DFFTData::timeSpecAverage ( )

Updates timeXSum.

Definition at line 188 of file Real2DFFTData.C.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ imagXSum

fftw_real * Real2DFFTData::imagXSum

Definition at line 41 of file Real2DFFTData.H.

◆ in

fftw_real* Real2DFFTData::in

The input data and power spectrum.

Examples:
Real2DFFTExample.C.

Definition at line 33 of file Real2DFFTData.H.

◆ maxPower

double Real2DFFTData::maxPower

Definition at line 44 of file Real2DFFTData.H.

◆ maxXSumIndex

int Real2DFFTData::maxXSumIndex

Row (x) and Column (y) max sum indexes.

Definition at line 48 of file Real2DFFTData.H.

◆ maxYSumIndex

int Real2DFFTData::maxYSumIndex

Definition at line 48 of file Real2DFFTData.H.

◆ mem

fftw_real* Real2DFFTData::mem
private

The total memory used by this class.

Definition at line 28 of file Real2DFFTData.H.

◆ minPower

double Real2DFFTData::minPower

Definition at line 44 of file Real2DFFTData.H.

◆ out

fftw_complex* Real2DFFTData::out

The output data.

Examples:
Real2DFFTExample.C.

Definition at line 35 of file Real2DFFTData.H.

◆ power

fftw_real * Real2DFFTData::power
Examples:
Real2DFFTExample.C.

Definition at line 33 of file Real2DFFTData.H.

◆ realXSum

fftw_real* Real2DFFTData::realXSum

Power spectral sums across rows (x) and columns (y)

Definition at line 41 of file Real2DFFTData.H.

◆ timeXSum

fftw_real* Real2DFFTData::timeXSum

A sum across the input time signal.

Definition at line 39 of file Real2DFFTData.H.

◆ totalPower

double Real2DFFTData::totalPower

The total power in the power spectrum, the maximum and minimum powers too.

Definition at line 44 of file Real2DFFTData.H.

◆ x

int Real2DFFTData::x
private

x=row y=column

Definition at line 26 of file Real2DFFTData.H.

◆ xSum

fftw_real* Real2DFFTData::xSum

Arrays which sum across rows (x) and columns (y)

Definition at line 37 of file Real2DFFTData.H.

◆ xSumMax

double Real2DFFTData::xSumMax

Definition at line 46 of file Real2DFFTData.H.

◆ xSumMin

double Real2DFFTData::xSumMin

The minimum/maximum row (x) and column (y) sums.

Definition at line 46 of file Real2DFFTData.H.

◆ y

int Real2DFFTData::y
private

Definition at line 26 of file Real2DFFTData.H.

◆ ySum

fftw_real * Real2DFFTData::ySum

Definition at line 37 of file Real2DFFTData.H.

◆ ySumMax

double Real2DFFTData::ySumMax

Definition at line 46 of file Real2DFFTData.H.

◆ ySumMin

double Real2DFFTData::ySumMin

Definition at line 46 of file Real2DFFTData.H.


The documentation for this class was generated from the following files:
gtkIOStream: Real2DFFTData Class Reference
GTK+ IOStream  Beta