#include <FFT.h>
Static Public Methods | |
| void | sinft (VecSimple(real) &y, int n, int iflag) |
| void | cosft (VecSimple(real) &y, int n) |
NAME: FFT - Fast Fourier sine and cosine transforms
DESCRIPTION:
The class is just a collection of 'static' functions for fast Fourier transforms. The algorithms are taken from Numerical Recipes, 2nd edition, rewritten in C++ and adapted to the Diffpack system.
|
|
calculates the cosine transform of a set "y" of "n+1" real-valued data points. The transformed data replace the original data in array "y". "n" must be a power of 2. |
|
|
calculates the sine transform of a set "y" of "n" real-valued data points. "y(1)=0". The transformed data replace the original data in array "y". "n" must be a power of 2. If "iflag" is 1, it means inverse transform. |