You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapters/FFT/cooley_tukey.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -58,11 +58,11 @@ Truth be told, I didn't understand it fully until I discretized real and frequen
58
58
59
59
In principle, the Discrete Fourier Transform (DFT) is simply the Fourier transform with summations instead of integrals:
60
60
61
-
$$X_k = \sum_{n=0}^{N-1} x_n \cdot e^{-2 \pi k n / N}$$
61
+
$$X_k = \sum_{n=0}^{N-1} x_n \cdot e^{-2 \pi i k n / N}$$
62
62
63
63
and
64
64
65
-
$$x_n = \frac{1}{N} \sum_{k=0}^{N-1} X_k \cdot e^{2 \pi k n / N}$$
65
+
$$x_n = \frac{1}{N} \sum_{k=0}^{N-1} X_k \cdot e^{2 \pi i k n / N}$$
66
66
67
67
Where $$X_n$$ and $$x_n$$ are sequences of $$N$$ numbers in frequency and real space, respectively.
68
68
In principle, this is no easier to understand than the previous case!
@@ -138,12 +138,12 @@ Butterfly Diagrams show where each element in the array goes before, during, and
138
138
As mentioned, the FFT must perform a DFT.
139
139
This means that even though we need to be careful about how we add elements together, we are still ultimately performing the following operation:
140
140
141
-
$$X_k = \sum_{n=0}^{N-1} x_n \cdot e^{-2 \pi k n / N}$$
141
+
$$X_k = \sum_{n=0}^{N-1} x_n \cdot e^{-2 \pi i k n / N}$$
142
142
143
143
However, after shuffling the initial array (by bit reversing or recursive subdivision), we perform the matrix multiplication of the $$e^{-2 \pi k n / N}$$ terms in pieces.
144
144
Basically, we split the array into a series of omega values:
145
145
146
-
$$\omega_N^k = e^{-2 \pi k / N}$$
146
+
$$\omega_N^k = e^{-2 \pi i k / N}$$
147
147
148
148
And at each step, we use the appropriate term.
149
149
For example, imagine we need to perform an FFT of an array of only 2 elements.
0 commit comments