Research Note ~ Deciphering Python’s FFT
In Python, the forward Discrete Fourier Transform (DFT) for a time signal $a(m)$ using both numpy and scipy is represented as
A(k)=n−1∑m=0a(m)exp(−2πimkn)and the inverse DFT is
a(m)=1nn−1∑k=0A(k)exp(2πimkn).The forward DFT is analagous to
A(k)=n−1∑m=0a(m)exp(−iωn).- a(m) corresponds to the input sequence
- n is the number of samples in the time domain
- k is the number of cycles
- m is the current index/sample
- kn corresponds to the frequency of the signal (k cycles per n samples)
- Relationship between angular frequency and temporal frequency: ω=2πf