DFTs
The discrete Fourier transform (DFT) is a fundamental tool in digital signal processing that converts a finite sequence of samples into its frequency components. Given a sequence of N complex samples x0, x1, ..., xN−1, the DFT outputs a sequence X0, X1, ..., XN−1 that represents the amplitudes and phases of sinusoids at discrete frequencies. The transform assumes the input sequence is one period of a periodic sequence and is commonly used to analyze or manipulate the spectrum of signals such as audio, images, and sensor data.
The forward DFT is defined by Xk = sum from n=0 to N−1 of x_n · exp(−2π i k
Key properties include linearity, time-shifting, and frequency-domain relationships such as the convolution theorem. The DFT reveals
Computationally, a direct implementation requires O(N^2) operations. The Fast Fourier Transform (FFT) reduces this to O(N