- #1
fog37
- 1,569
- 108
- TL;DR Summary
- Correct understanding of Nyquist theorem
Hello,
I would really appreciate it if you could check my understanding on Nyquist theorem:
Is my understanding correct?
Thank you
I would really appreciate it if you could check my understanding on Nyquist theorem:
- We start with a continuous time signal f(t) and convert it to a digital and discrete signal ##f[t]##.
- The discrete signal ##f[t]## to be a "good" approximation of the continuous signal ##f(t)## only if we sample ##f(t)## at a sufficiently high rate. The higher the better but too many samples may also be unnecessary. Nyquist theorem tells us that if we sample ##f(t)## at a rate higher than ##2 f_{max}##, we will be able to "perfectly" reconstruct the continuous signal ##f(t)## from the samples using interpolation. Not just that: the spectrum of the digital discrete signal ##f[t]## will be a good approximation of the actual spectrum ##F(f)## of ##f(t)##. Given a sequence of ##N## time samples after sampling ##f(t)##, we can take the Fourier transform DFT of those ##N## samples to get the spectrum which also has ##N## samples.
- Interestingly, The DFT spectrum will only have values at frequencies which are ##k \frac {f_s} {N}## Hz where k=integer, ##f_s##=sampling rate, ##N##=number of samples.
- ##f = 5Hz##, the frequency of our continuous sine function ##f(t) = sin(2 \pi f t)##
- Time interval ##\Delta t##=1 s
- period ##T## of continuous sine ##f(t)## is ##\frac {1}{f}## = 1/5 = 0.2s
- number of cycles of continuous sine f(t) during ##\Delta_t##: 1/0.2= 5
- ##fs## = sampling frequency = 20 Hz (much higher than 5Hz)
- ##N##=number of samples = (20/cycle)*(5 cycles)=100
- The frequency bins in the DFT are k*fs/N: f1=20/100=0.2 , f2=40/100=0.4, f3=60/100=0.3, f4= 80/100, ...etc.
- The discrete signal version of ##f(t)## is given by ##f[n] = sin[2 \pi 5 fs n]## where n=integer.
- In this example, the DFT spectrum will have a single spike at ##f=5Hz##, as we desire, because 5Hz corresponds to exactly an integer multiple ##k=25##. If ##f## was not an exactly multiple of ##\frac {f_s} {N}##, we would small nonzero values also at other DFT bin frequencies. But this is NOT aliasing.
- Aliasing occurs, for example, if ##fs=8Hz##. The DFT spectrum would be VERY different from the actual spectrum of the continuous ##f(t)## signal with large and significant nonzero values at DFT bin frequencies other than the actual frequency...Mathematically, this can seen as "replicas" of the actual spectrum overlapping with each other in the bandwidth 0-fmax distorting the spectrum: multiplication in the time domain (the sampling) is convolution in the frequency domain.
- The time domain signal is discrete and finite with ##N## samples. Its spectrum would be continuous and infinite DTFT. However, we get the DFT which is also discrete and finite. This means that the DFT is a discrete approximation of the DTFT, correct?
Is my understanding correct?
Thank you