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

class ComplexFFTData controls and manipulates complex fft data More...

#include <ComplexFFTData.H>

Public Member Functions

 ComplexFFTData (int sz)
 Constructor with all memory to be allocated internally. More...
 
 ~ComplexFFTData (void)
 Deconstructor. More...
 
void switchData (ComplexFFTData *d)
 Use this to change associated fft data (for fft'ing) More...
 
int limitHalfPowerSpec (double lim)
 Limits the maximum to 'lim' and returns the last fft bin with max. More...
 
int getSize ()
 Returns the number of elements in the input and output arrays. More...
 
int compPowerSpec ()
 This function computes the power spectrum and returns the max bin. More...
 
int sqrtPowerSpec ()
 This function computes the square root of the power spectrum and returns the max bin. More...
 

Public Attributes

int size
 Specifies the size of the data array. More...
 
fftw_complex * in
 the input and output arrays More...
 
fftw_complex * out
 
fftw_realpower_spectrum
 the power_spectrum array More...
 
double totalPower
 The total power (summed) of the power spectrum as used in the method compPowerSpec. More...
 
int minPowerBin
 Specifies the minimum and maximum power bins as used in the methods findMaxMinPowerBins and compPowerSpec. More...
 
int maxPowerBin
 

Detailed Description

class ComplexFFTData controls and manipulates complex fft data

Examples:
ComplexFFTExample.C.

Definition at line 24 of file ComplexFFTData.H.

Constructor & Destructor Documentation

◆ ComplexFFTData()

ComplexFFTData::ComplexFFTData ( int  sz)

Constructor with all memory to be allocated internally.

Definition at line 21 of file ComplexFFTData.C.

◆ ~ComplexFFTData()

ComplexFFTData::~ComplexFFTData ( void  )

Deconstructor.

Definition at line 48 of file ComplexFFTData.C.

Member Function Documentation

◆ compPowerSpec()

int ComplexFFTData::compPowerSpec ( )

This function computes the power spectrum and returns the max bin.

Examples:
ComplexFFTExample.C.

Definition at line 60 of file ComplexFFTData.C.

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

◆ getSize()

int ComplexFFTData::getSize ( void  )
inline

Returns the number of elements in the input and output arrays.

Definition at line 49 of file ComplexFFTData.H.

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

◆ limitHalfPowerSpec()

int ComplexFFTData::limitHalfPowerSpec ( double  lim)

Limits the maximum to 'lim' and returns the last fft bin with max.

◆ sqrtPowerSpec()

int ComplexFFTData::sqrtPowerSpec ( )

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

Examples:
ComplexFFTExample.C.

Definition at line 81 of file ComplexFFTData.C.

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

◆ switchData()

void ComplexFFTData::switchData ( ComplexFFTData d)

Use this to change associated fft data (for fft'ing)

Member Data Documentation

◆ in

fftw_complex* ComplexFFTData::in

the input and output arrays

Examples:
ComplexFFTExample.C.

Definition at line 29 of file ComplexFFTData.H.

◆ maxPowerBin

int ComplexFFTData::maxPowerBin

Definition at line 35 of file ComplexFFTData.H.

◆ minPowerBin

int ComplexFFTData::minPowerBin

Specifies the minimum and maximum power bins as used in the methods findMaxMinPowerBins and compPowerSpec.

Definition at line 35 of file ComplexFFTData.H.

◆ out

fftw_complex * ComplexFFTData::out
Examples:
ComplexFFTExample.C.

Definition at line 29 of file ComplexFFTData.H.

◆ power_spectrum

fftw_real* ComplexFFTData::power_spectrum

the power_spectrum array

Examples:
ComplexFFTExample.C.

Definition at line 31 of file ComplexFFTData.H.

◆ size

int ComplexFFTData::size

Specifies the size of the data array.

Definition at line 27 of file ComplexFFTData.H.

◆ totalPower

double ComplexFFTData::totalPower

The total power (summed) of the power spectrum as used in the method compPowerSpec.

Definition at line 33 of file ComplexFFTData.H.


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