Sampling and Reconstruction
Introduction to Sampling and Reconstruction
Sampling and reconstruction are fundamental concepts in communications and signal processing (my PhD emphasis in the ECE department).
Sampling refers to the process of converting a continuous-time signal into a discrete-time signal by capturing its values at regular intervals. Reconstruction, on the other hand, involves converting a discrete-time signal back into a continuous-time signal. These processes are essential for converting analog signals into digital form and vice versa, enabling the representation, transmission, and processing of signals using digital systems.
Sampling of analog signals in 1D
Sampling by Dirac delta multiplication
where is the original analog signal, is the sampled signal, and is the sampling period. The Dirac delta function acts as a sampling gate, capturing the value of the signal at regular intervals of .
Sampling in the Fourier Domain
The Fourier transform of the sampled signal is given by:
where is the Fourier transform of the original signal, and is the Fourier transform of the sampled signal. The convolution of with the Dirac comb function results in the replication of the original spectrum at intervals of in the frequency domain.
Visualization of Sampling in the Frequency Domain
How this works
- A sinusoidal function, , is used to generate the signal data.
- The
drawSubsampled
function (Check it out on GitHub if you are interested) generates data points for the signal based on the subsampling rate provided by the you the user through the slider. It then draws (or redraws) the line representing the subsampled signal. - The slider input event triggers the
drawSubsampled
function, updating the visualization based on the selected subsampling rate.
This basic example demonstrates the effect of subsampling on a signal and how decreasing the sampling rate can lead to aliasing, visually represented by changes in the signal's appearance. Experiment with different rates to see how undersampling distorts the original sinusoidal shape. Sorry if this isn't the most beautiful graphic, I kind of suck at D3.js, well actually all things JavaScript.
Shannon's Sampling Theorem (1949)
A function , band-limited to Hz, can be reconstructed exactly from its equidistant samples, provided that the sampling step is .
Specifically,