Skip to main content

Discrete Fourier Transform

Definition​

The Discrete Fourier Transform (DFT) algorithm is a fundamental method for analyzing the frequencies present in discrete signals. It transforms a sequence of complex numbers representing a signal from the time domain into a sequence of complex numbers representing the signal in the frequency domain

Practice​

DiscreteFourierTransform(input_sequence):
N = length(input_sequence)
output_sequence = array of length N

for k from 0 to N-1:
Y_k = 0
for n from 0 to N-1:
omega = e^(-2*pi*i*k*n/N)
Y_k += input_sequence[n] * omega
output_sequence[k] = Y_k

return output_sequence