gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
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_real * | power_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 |
class ComplexFFTData controls and manipulates complex fft data
Definition at line 24 of file ComplexFFTData.H.
ComplexFFTData::ComplexFFTData | ( | int | sz | ) |
Constructor with all memory to be allocated internally.
Definition at line 21 of file ComplexFFTData.C.
ComplexFFTData::~ComplexFFTData | ( | void | ) |
Deconstructor.
Definition at line 48 of file ComplexFFTData.C.
int ComplexFFTData::compPowerSpec | ( | ) |
This function computes the power spectrum and returns the max bin.
Definition at line 60 of file ComplexFFTData.C.
|
inline |
Returns the number of elements in the input and output arrays.
Definition at line 49 of file ComplexFFTData.H.
int ComplexFFTData::limitHalfPowerSpec | ( | double | lim | ) |
Limits the maximum to 'lim' and returns the last fft bin with max.
int ComplexFFTData::sqrtPowerSpec | ( | ) |
This function computes the square root of the power spectrum and returns the max bin.
Definition at line 81 of file ComplexFFTData.C.
void ComplexFFTData::switchData | ( | ComplexFFTData * | d | ) |
Use this to change associated fft data (for fft'ing)
fftw_complex* ComplexFFTData::in |
the input and output arrays
Definition at line 29 of file ComplexFFTData.H.
int ComplexFFTData::maxPowerBin |
Definition at line 35 of file ComplexFFTData.H.
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.
fftw_complex * ComplexFFTData::out |
Definition at line 29 of file ComplexFFTData.H.
fftw_real* ComplexFFTData::power_spectrum |
the power_spectrum array
Definition at line 31 of file ComplexFFTData.H.
int ComplexFFTData::size |
Specifies the size of the data array.
Definition at line 27 of file ComplexFFTData.H.
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.
GTK+ IOStream
Beta
|