1
cidrb
|
This is an example of computation of the discrete Fourier transform (DFT) on the cyclic group of n elements on a real vector. Note: The characters were chosen as exp(-2 pi x y /n) (i.e. with minus sign).
The data is generated randomly. Press "z" for new data. Since the DFT is complex valued, the resulting function is pictured in two colors, representing real and imaginary part). You can freely use this code for anything. |
cidrb
|
Note: This is not the FFT algorithm. It is computed by the definition (i.e. O(n^2) operations).
|