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

References fWaveTable.


Member Function Documentation

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

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

References Resize(), QFFT::SetForward(), QFFT::SetNormalized(), QVectorC::SingleVector(), QVectorC::Size(), and Transform().

Referenced by BesselTransformer::BesselTransformer(), BesselTransformer::ConvolveFD(), WienerFilter::Filter(), OptimumFilter::Filter(), WienerFilter::Filter_d(), and OptimumFilter::Filter_d().

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.

References QFFT::GetWindow(), and QVector::QVector().

Referenced by MNoiseAvgPowerSpectrum::Do(), Resize(), and Transform().

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.

References fWaveTable, and SetWindowType().

Referenced by TransformFromFreq(), and TransformToFreq().

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.

References fWaveTable, and SetWindowType().

Referenced by TransformFromFreq(), and TransformToFreq().


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

Referenced by QRealComplexFFT(), Resize(), Transform(), and ~QRealComplexFFT().


The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:08 2010 for CUORE Software by  doxygen 1.5.6