PCP Teaser

Exercise: Fourier Analysis of Signals

Prerequisites

To work on this exercise, you should first work through the Lecture on Fourier Analysis of Signals. In particular, go through the notebooks mentioned in the lecture overview.

Tasks

Task: Complex Numbers

Go through the PCP notebook on Complex Numbers and complete exercises 1 and 2.

Task: Exponential Function

Go through the PCP notebook on the Exponential Function and complete exercise 1 and optionally exercise 3.

Task: Sampling, Aliasing, Beating

Go through the PCP notebook on Signals and Sampling and complete exercises 1 and 2. Be sure that you understand the concepts of sampling, aliasing and beating.

Finally, take some audio file (e.g. your favorite song) and listen to downsampled versions of it at different sampling rates. Can you find signals for which the effect is more pronounced? And can you find signals for which the original and the downsampled version sound (almost) identical?

Task: Quantization

Go through the FMP notebook on Quantization.

Again, take some audio file and experiment with different quantization levels. At which quantization strength do you begin to hear quantization noise?

Task: DFT

Go through the PCP notebook on the DFT and FFT (you may skip the part on the FFT for now) and complete exercises 1, 2, 3. You may check the FMP notebook on DFT and FFT for more explanations of the concepts.

Explain in your own words: What happens to a signal $x$ when it is multiplied with the matrix $\mathrm{DFT}_N$? Check your understanding by looking at the visualizations of $\mathrm{Re}(\mathrm{DFT}_N)$ and $\mathrm{Im}(\mathrm{DFT}_N)$ and answering the following questions:

  • Why do both matrices show a 2-by-2 pattern?
  • Why are the quadrants of the 2-by-2 pattern in $\mathrm{Im}(\mathrm{DFT}_N)$ separated by white lines?
  • In $\mathrm{Re}(\mathrm{DFT}_N)$, you can see circles which are, alternatingly, blue-red-blue-red... Why do they appear?
  • In $\mathrm{Im}(\mathrm{DFT}_N)$, you can see colored circles, too. Observe, however, that the colors do not match between neighboring quadrants. Why does this happen?

Optional Task: Frequency Grid

Go through the FMP notebooks on Frequency Grid Density up until, but not including, "Frequency Interpolation for STFT" and Frequency Grid Interpolation up until, but not including, "STFT with Increased Frequency Grid Resolution".

Answer the following questions:

  • What do the following terms refer to? Do they refer to the same thing or how are they different?
    • Frequency Grid Density
    • Frequency Resolution
    • DFT approximation quality
  • Consider the two techniques introduced in the two notebooks. How do they affect frequency grid density, frequency resolution and DFT approximation quality?
  • When would you prefer one technique over the other?

Task: FFT

Read the FMP notebook on DFT and FFT and try to understand the FFT algorithm in depth. For this, also read Section 2.4.3 of the text book. Be able to answer the following questions

  • Why do we have $\sigma_M = \sigma_N^2$?
  • Why do we say that the FFT algorithm is a recursive algorithm?
  • Why does naive application of the DFT take operations in the order of $N^2$?
  • How is this complexity reduced in the FFT algorithm?
  • Optional Task: Prove that FFT and naive application of the DFT yield the same result.

Question & Answer Session

MPA footer