You probably noticed a number of odd, confusing, and maybe even surprising things when watching the animation of the DFT in the previous section. In this section, you can scrutinize the different inputs, outputs, and intermediate steps in the transform to better understand the final results.
Before going any further, we need to explain a bit of terminology. Each of the complex numbers in the DFT output is referred to as a bin. You can use the Next and Previous buttons to examine the sine, cosine and resultant dot product signals for each bin. The first bin is referred to as the DC bin. you’ll notice that the corresponding sine and cosine signals for the DC bin aren’t really even waves, they’re just flat lines. This is because the k term in our equation is zero for the first bin, and cos(0)= 1 and sin(0) = 0. The DC bin gives us a measurement of the input signal’s average value. Since our input signals are all centered around zero, the DC bin has a magnitude of zero for each of our three signals.
The fifth bin (DFT[4]) is also quite interesting. If you cast your mind back to the sections on aliasing, you’ll notice that the sine and cosine waves for this bin are right at the Nyquist Limit. For this reason, this bin is often referred to as the Nyquist Bin. Notice that everything to the right of the Nyquist bin is a vertically-flipped mirror image of the bins to the left.1 This is because the sine and cosine waves for the 6th, 7th, and 8th bins are actually undersampled - they are aliases of the 2nd, 3rd, and 4th bins.2 Recall the section on Crossing the Nyquist Limit if you need an intuitive explanation for why this is so.
Figure 1. Animated Walkthrough of the Discrete Fourier Transform |
||
|
As you twiddle the slider which controls the phase of the input signal, you’ll notice that the magnitudes of output bins will remain constant, but their phases will change in relation to the shift in input phase.3 In the next section, we'll find that some quite strange things begin to happen when we instead choose to alter the frequency of the input signal.