Sampling Theorem
Signal and Its Spectrum
We assume that the signal to be processed is a real function with its spectrum , and assume that the maximum frequency component of does not exceed . Note that the spectrum of a real function is basically symmetric about the y-axis, as shown in the figure below:
!['s spectrum ](/img/FourierAnalysis/sf.png =x180)
Mathematical Expression of Sampling
As mentioned earlier, to transition from analog to digital signals, the process generally involves sampling and quantization, where quantization is irreversible and introduces what is called quantization noise.
Let's now talk about sampling.
Assuming the signal is , sampled every time, the sampling result is . Mathematically, we can imagine that the sampling method is equivalent to multiplying the original signal by a comb function, which is , as shown in the figure below:
![Sampling the function](/img/FourierAnalysis/sampling.png =x180)
We don't need to worry about the problem of the function approaching ; just focus on the coefficient before the function.
Spectrum After Sampling
After sampling the signal, let's look at its Fourier transform, that is, the spectrum after sampling. According to the content described earlier:
Since the function consists of a series of functions, and when a function convolves with any function, it remains the same function but shifts its center to the center of the function, i.e.,
This results in the following spectrum after sampling (amplitude not considered for now):
!['s spectrum after sampling](/img/FourierAnalysis/ssampf.png =x200)
Note that the above figure assumes , so there is no overlap between the repeated spectrums. If , the repeated spectrums would overlap.
Signal Restoration
If , meaning there is no overlap between the repeated spectrums, we can take the middle slanted part of the spectrum as the signal we want to restore. Since the spectrum of the signal is completely the same, the signal itself is also identical. In other words, theoretically, it is possible to restore the original signal from the sampling result. The rate is called the Nyquist sampling rate and the corresponding frequency is called the Nyquist frequency.
The restoration method, in terms of the frequency domain, is to multiply the sampled spectrum by a hat function, which is equivalent to low-pass filtering the signal, i.e., only retaining the middle slanted spectrum region and filtering out other frequency areas. Mathematically, this can be represented as (amplitude not considered for now):
Alternatively, from the time domain perspective, performing the inverse Fourier transform of the above equation results in the time-domain signal. Since multiplication in the frequency domain translates to convolution in the time domain, and the inverse transform of the hat function is the sinc function, the time-domain signal can be expressed as (amplitude not considered for now):
The result is shown in the figure below, equivalent to placing a scaled sinc function at each sampling point, where the sinc function has a value of 1 at the sampling position and 0 at other sampling positions. For this reason, the sinc function is sometimes also called the sampling function.
Exercise 3
- The content above assumes that the signal bandwidth is limited. Is this assumption reasonable in the real physical world? Please share your views and reasons.
- In the reasoning process above, it's assumed that the sampling rate is more than twice the signal's highest frequency. What would happen if the actual sampling rate is less than twice the signal's highest frequency?