libdas2
das2 core C utilities
|
#include <das2/dft.h>
An amplitude preserving Discrete Fourier Transform converter.
On POSIX systems this code uses pthreads and fftw to handle simutaneous FFTs. The windows implemetation doesn't exist yet, but will not alter the call interface. An example of using this class follows:
Public Member Functions | |
Das2Dft * | new_Dft (DftPlan *pPlan, const char *sWindow) |
Create a new DFT calculator. More... | |
void | del_Dft (Das2Dft *pThis) |
Free a DFT (Discrete Fourier Transform) calculator. More... | |
DasErrCode | Dft_calculate (Das2Dft *pThis, const double *pReal, const double *pImg) |
Calculate a discrete Fourier transform. More... | |
const double * | Dft_getImg (Das2Dft *pThis, size_t *pLen) |
Return the imaginary component after a calculation. More... | |
const double * | Dft_getMagnitude (Das2Dft *pThis, size_t *pLen) |
Get the amplitude magnitude vector from a calculation. More... | |