Work

Snabb Fouriertransform : Härledning, implementation och applikation av Cooley-Tukeys algoritm för snabb Fouriertransform

Year: 2025
Type: dissertation
Abstract: The fast Fourier transform (FFT) is an algorithm which transforms sampled data from state-space to Fourier-space. By approximating the continuos Fourier transform we first derive a naive discrete Fourier transform (DFT). This naive implementation transforms samples via a matrix product, and has a time complexity of $\mathcal{O}(n^2)$. The complexity can be lowered to $\mathcal{O}(n\log n)$ when the number of samples is a power of two, or padded to one. To do this, we decompose the DFT matrix into $\log_2 n$ products which can be calculated in linear time. We compare the DFT and FFT algorithms and confirm that the asymptotic time complexity conforms with the theoretical result. We also compare recursive, iterative and multithreaded FFT variants and find that they performed similarly. The choice of programming language, however, has a big impact on performance. Finally, we compare our implementations to the state-of-the-art FFT library FFTW. Two applications of the DFT are explored. The first, to numerically calculate matrix-vector products with circulant and Toeplitz matrices. The second, to filter coastline data. The FFT algorithm, while theoretically complex, has relatively simple implementations that perform well compared to a naive DFT. An area that could be improved in our implementation is the handling of signal sizes that are not powers of two. However this is not a trivial problem to solve. Still, the algorithm can be used effectively in a wide range of applications.
Authors: Lannhard, Gustav, Andrén, Marc, Olsson, William, Dannetun, Axel, Angelov, Ruben
Language: English
Open Access status: green
OpenAlex ID: W7062097764
Cites: 3
Cited by:
Related to: 9