5. Spectral Analysis Flashcards
How does a practical analog-to-digital converter affect a signal?
A practical analog-to-digital converter distorts the signal in three different ways:
- (some small amount of) aliasing is inevitably inserted during sampling - quantization distortion is added by the quantizer - spectral distortion is introduced to the signal because of the finite order of the anti-aliasing filter
(p. 100)
What is the difference between sample-based and frame-based (also called blockbased) data transfer?
In a real-time application the signal is typically received on a sample or a frame basis. This means that the analog-to-digital converter communicates with the signal processing core at regular time instances only, each time passing isolated packets of one (sample-based data transfer) or multiple (frame-based, also called block-based data transfer) samples to (and from) the processing core.
(p. 101)
What is a (non-)stationary signal? Give a practical example.
A signal is said to be stationary if the characteristics of the underlying process(es) do not change over time and, hence, if as a result, the properties of the signal (such as amplitude, frequency content, . . .) that are observed over a reasonable amount of time, remain invariant.
If for instance a hammer repeatedly hits a piano string at the same place and with the same speed and if the properties of the string (e.g. tension) do not change over time, always a sound with the same frequency and timbre is produced.
A non-stationary signal is for instance fluent speech where different sounds with a different spectral content and pitch rapidly follow each other as tongue, lips and jaw change position and the rate at which the vocal chords vibrate is altered.
(p.102)
What is a deterministic signal?
What is a stochastic signal? Give a practical example.
A signal is said to be deterministic if the underlying generative processes depend on known (environmental) factors such that their cumulative result (the signal) can be well described
and predicted. For example, a piano sound or vowels produced by a human voice.
If too many or unknown processes contribute to the cumulative result, the signal is called non-deterministic or stochastic. Stochastic signals tend to manifest themselves as noise. For example, EEG signals.
(p. 102)
What will we use to compute the frequency spectrum of a discrete-time signal of finite length at a finite number of frequencies equally spread over the fundamental interval? And why?
To compute the frequency spectrum of a discrete-time signal of finite length at a finite number of frequencies equally spread over the fundamental interval the (DFT or) FFT can be used. This will typically result in a smaller number of operations than when the spectrum is directly obtained from equation 5.3, i.e. with the DTFT.
(p. 105)
How can one improve the resolution of the frequency spectum?
Zero padding, i.e. setting L > N, is a simple trick to improve the resolution of the frequency spectrum (see figure 5.2). Recall though that frequency resolution can only be effectively improved by increasing N. Making L larger merely enhances the spectral plot, i.e. makes the spectral plot more smooth.
(p. 104)
How can we practically compute the spectrum of a long stationary signal?
The analysis of a frame of samples rather than the entire signal is a practical way out to compute the spectrum of an (infinitely-)long (quasi-)stationary signal, even though it gives rise to an approximate result only (see figure 5.3).
(p. 106)
Make sure that you understand and can reproduce figure 5.4. You are not supposed to be able to replicate the values on the vertical axes.
Spectral analysis of a frame of N consecutive samples coming from a (co)sine wave signal of frequency ¯f = M fs/N with M ∈ {0, 1, 2, …} and N ∈ {1, 2, 3, …}. On the left the signals are represented in the continuous-time domain, on the right the corresponding continuous Fourier transforms are shown. Notice that M = 2 and N = 20 in this example.
(p. 108)
Make sure that you understand and can reproduce figure 5.6. You are not supposed to be able to replicate the values on the vertical axes.
Spectral analysis of a frame of N consecutive samples coming from a (co)sine wave of frequency ¯f = M fs/N with N ∈ {1, 2, 3, …}, but M /∈ Z. On the left the signals are represented in the continuous-time domain, on the right the corresponding continuous Fourier transforms are shown. Notice that M = 2.44 and N = 20 in this example.
(p. 112)
What does the DFT spectrum of a frame of N consecutive samples of a (co)sine wave typically look like?
From which artifacts does it suffer?
Why do they occur?
The resulting DFT spectrum XN [n] contains multiple frequency components that are spread all over the fundamental interval. The most prominent contributions occur nevertheless at frequency bins n that are closest to M /∈ Z or N − M /∈ Z.
Smearing and leakage (?) when the frame contains a non-integer number of periods.
(p. 111)
What is smearing?
What is leakage?
The fact that a (co)sine wave is represented by multiple adjacent peaks around n = M and n = N − M is called smearing.
The fact that also frequency bins n far from M and N − M are non-zero is called leakage.
Figure 5.8 illustrates both.
(p. 113 - 114)
To which errors may smearing and leakage give rise?
- Smearing and leakage may give misleading information about the spectral content of the analog signal the samples are derived from. They can insert spurious frequency components in the
spectral plot or make some spectral information disappear (see figure 5.3). Bear in mind that the resulting frequency spectrum reveals the spectral content of the zero-padded/periodically
repeated frame of signal samples rather than the spectral content of the analog signal the samples are derived from. - Smearing and leakage cause errors in frequency, amplitude and phase measurements.
- Smearing and leakage owing to a strong frequency component can hide weaker components at nearby frequencies. This may lead to a detection problem.
- Smearing compromises the frequency resolution capacity of the DFT.
(p. 114 - 115)
Explain in words why the application of a windowing function other than the rectangular window can reduce the amount of leakage.
What is the price to pay?
Which trade-off does exist?
Non-rectangular windowing functions are applied which weight each sample in the frame by a certain factor so that the signal amplitude is smoothly brought to zero at the beginning and at the end of the data frame, a process which is called apodization. In this way, discontinuities between periodic repetitions of the data frame are avoided, and hence, the amount of leakage is reduced. The corresponding W(f) will have much smaller sidelobes, which lowers the amount of leakage.
A non-rectangular (they example in the book) has a wider mainlobe than the rectangular window in figure 5.6, second plot on the right. This increases the amount of smearing and therefore compromises the resolution capacity of the DFT. Apparently, a small amount of leakage implies a large amount of smearing, and vice versa. The emphasis can be put on either frequency
resolution (low smearing levels) or frequency detection (low leakage levels). However, whatever windowing function is used, the resulting spectral plot will always suffer to some extent
from both smearing and leakage.
(p. 117)
Give the spectral analysis of a non-rectangular windowed frame of N consecutive samples coming from a (co)sine wave.
Make sure that you understand and can reproduce figure 5.9. You are not supposed to be able to replicate the values on the vertical axes.
(p. 116)
How does the window length relate to the performance?
The application of a window of length N comes down to N multiplications.
(p. 118)
What is scalloping loss?
Scalloping loss is the maximum estimation error that can occur with a specific window when using equation 5.24 to find the amplitude of a (co)sine wave or the strength of a signal component.
Also give the graph 5.12
(p. 119 - 120)
What is highest sidelobe level?
The highest sidelobe level (HSL) is the level of the highest sidelobe peak |Wd(φHSL)| relative to the level of the mainlobe peak. It is usually expressed in dB.
Explain with graph 5.12.
(p. 119 - 120)
What is sidelobe roll-off?
Sidelobe roll-off (SRO) is the rate at which the sidelobe peaks decrease with φ, as is illustrated in figure 5.12. Together with the highest sidelobe level, it predicts the amount of leakage that is inserted in the spectrum.
Explain with graph 5.12.
(p. 119/121)
What is mainlobe width?
The mainlobe width (MLW) is defined as the size of the frequency interval between the first minimum of |Wd(φ)| on the left of the mainlobe peak and the first (symmetric) minimum on the right. The mainlobe width reflects the amount of smearing that is introduced by the window.
Explain with graph 5.12.
(p. 119/121)
Give the name of a number of popular windowing functions.
Interpret table 5.2. Also have a look at figures 5.14, 5.15 and 5.16.
Rectangular window, Hann window, Hamming window, Bartlett window, Blackman window, Blackman-Harris, Flat-top window, Guassian window, Kaiser-Bessel window.
(p. 121 - 128)