2D FFT the code

Up a level : Fast Fourier transform
Previous page : 2D FFT explanation

We will here look at some of the code for the 2D FFT

The function epicycles() is the star of the show.  The data is split into a real part from the horizontal data and an imaginary part from the vertical data.  The data is then centred and padded to be a

We do the FFTs, then add vs subtract the result as described on the previous page.

We then normalize the result and set the depth (the number of pairs of hands) to half the size of the dataset.

For the FFT we need some complex algebra.

Then we have the actual FFT.

 

Up a level : Fast Fourier transform
Previous page : 2D FFT explanationLast modified: Feb 23, 2025 @ 15:14