Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SPUC::cfft< CPLX > Class Template Reference
[Miscellaneous functions]

General Purpose C++ complex FFT Transform. More...

#include <cplxfft.h>

Collaboration diagram for SPUC::cfft< CPLX >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 cfft (int size, double scalef1=0.5, double scalef2=1.0, double scalei1=1.0, double scalei2=1.0)
 ~cfft ()
void fft (CPLX *buf)
 perform forward fft on buffer
void ifft (CPLX *buf)
 perform reverse fft on buffer
int length () const
void hermitian (CPLX *buf)

Detailed Description

template<class CPLX>
class SPUC::cfft< CPLX >

General Purpose C++ complex FFT Transform.

This is a general-purpose C++ complex FFT transform class. it is defined as a template over a complex type. For instance, if using gnu gcc, the complex type is complex<double> And you declare the cfft class as cfft<complex<double>>

The underlying CPLX type requires: CPLX() operator = , CPLX(CPLX const&) CPLX(double,double) [used on cos/sin] CPLX operator*( CPLX , double ) CPLX conj(CPLX const &); [conjugate] ComPlex::operator @ (CPLX , CPLX ) [ where @ =* + - ]


Constructor & Destructor Documentation

template<class CPLX>
SPUC::cfft< CPLX >::cfft int  size,
double  scalef1 = 0.5,
double  scalef2 = 1.0,
double  scalei1 = 1.0,
double  scalei2 = 1.0
 

Here is the call graph for this function:

template<class CPLX>
SPUC::cfft< CPLX >::~cfft  ) 
 


Member Function Documentation

template<class CPLX>
void SPUC::cfft< CPLX >::fft CPLX *  buf  )  [inline]
 

perform forward fft on buffer

template<class CPLX>
void SPUC::cfft< CPLX >::hermitian CPLX *  buf  ) 
 

used to fill in last half of complex spectrum of real signal when the first half is already there.

template<class CPLX>
void SPUC::cfft< CPLX >::ifft CPLX *  buf  )  [inline]
 

perform reverse fft on buffer

template<class CPLX>
int SPUC::cfft< CPLX >::length  )  const [inline]
 


The documentation for this class was generated from the following file:
Generated on Fri Sep 16 11:08:42 2005 for spuc by  doxygen 1.4.4