QRealComplexFFT Class Reference

Inheritance diagram for QRealComplexFFT:

QFFT List of all members.

Detailed Description

perform FFT of real vectors


Public Member Functions

 QRealComplexFFT (const int size)
 constructor
 QRealComplexFFT ()
 empty constructor
virtual ~QRealComplexFFT ()
 destructor
virtual int TransformToFreq (const QVector &data, QVectorC &FFT)
 transform from the times to the frequencies
virtual int TransformFromFreq (const QVectorC &FT, QVector &spectrum)
 transform from the frequencies to the times
virtual void SetWindowType (WindowType wt, bool coherent=false)
 resize working table and space

Protected Member Functions

virtual int Transform (const QVector &data, QVector &result)
 virtual method. Must be implemented by daughter classes.

Private Member Functions

virtual void Resize (int s)
 virtual method. Must be implemented by daughter classes

Private Attributes

gsl_fft_real_wavetable * fWaveTable
 set the window type.
gsl_fft_halfcomplex_wavetable * fHCWaveTable
gsl_fft_real_workspace * fWork


Constructor & Destructor Documentation

QRealComplexFFT::QRealComplexFFT ( const int  size  ) 

constructor

Parameters:
size is the length of the real vector to be transformed


Member Function Documentation

int QRealComplexFFT::TransformToFreq ( const QVector &  data,
QVectorC FFT 
) [virtual]

transform from the times to the frequencies

Parameters:
result stores the fft size of the FFT is size of
Returns:
0 upon success

int QRealComplexFFT::TransformFromFreq ( const QVectorC FT,
QVector &  spectrum 
) [virtual]

transform from the frequencies to the times

Parameters:
result stores the spectra size of the FFT is size of
Returns:
0 upon success

void QRealComplexFFT::SetWindowType ( WindowType  wt,
bool  coherent = false 
) [virtual]

resize working table and space

Parameters:
s is the size of the real array to be transformed

Implements QFFT.

int QRealComplexFFT::Transform ( const QVector &  data,
QVector &  result 
) [protected, virtual]

virtual method. Must be implemented by daughter classes.

Parameters:
data references the vector of data to be transformed
result references the vector holding the result

Implements QFFT.

void QRealComplexFFT::Resize ( int  s  )  [private, virtual]

virtual method. Must be implemented by daughter classes

Parameters:
s is the size of the vector to be transformed

Implements QFFT.


Member Data Documentation

gsl_fft_real_wavetable* QRealComplexFFT::fWaveTable [private]

set the window type.

Parameters:
t is the type of window applied up tp now: 0 no window 1 Hamming window


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:44 2009 for CUORE Software by  doxygen 1.5.1