#include <cplxfft.h>
Collaboration diagram for SPUC::cfft< CPLX >:

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) |
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 @ =* + - ]
|
||||||||||||||||||||||||||||
|
Here is the call graph for this function: ![]() |
|
|||||||||
|
|
|
||||||||||
|
perform forward fft on buffer
|
|
||||||||||
|
used to fill in last half of complex spectrum of real signal when the first half is already there. |
|
||||||||||
|
perform reverse fft on buffer
|
|
|||||||||
|
|
1.4.4