Sampling is the process of converting a continuous-time signal into a discrete-time signal by taking measurements (samples) of a continuous-time signal xC(t) at a regular sampling period of Ts to create a discrete-time signal xD[n] , such that xD[n]=xC(t)∣t=kTS for k∈N.
This process is also outlined in the block diagram below, where a spike train z(t)=∑k=−∞∞δ(t−kTS) is multiplied with the input to produce the sampled signal xZ(t)=xC(t)×z(t), which is then converted to a discrete-time signal, xD[n]:
\usepackage{tikz}\usetikzlibrary{arrows.meta, positioning}\begin{document}\begin{tikzpicture}[node distance=2cm, >=Stealth, thick]% Nodes\node (input1) at (0,0) {};\node[draw, circle, minimum size=0.5cm, right=of input1] (adder) {$\times$};\node[below=1.5cm of adder] (input2) {};\node[draw, rectangle, minimum height=1.2cm, minimum width=1.8cm, right=of adder] (box) {Dirac-to\newline-Kronecker};\node[right=of box] (output) {};% Arrows\draw[->] (input1.east) -- (adder.west) node[at start, left] {$x_{C}(t)$}; % Input from the left to adder\draw[->] (input2.north) -- (adder.south) node[at start, below] {$z(t)$}; % Input from below to adder\draw[->] (adder.east) -- (box.west) node[midway, above]{$x_{Z}(t)$}; % Adder output to box\draw[->] (box.east) -- (output.west) node[right] {$x_{D}[n]$}; % Box output to the right\end{tikzpicture}\end{document}
Sampling theory is primarily governed by the Nyquist-Shannon Sampling Theorem, which states that a signal xC(t) that is band-limited (i.e. bounded) to a frequency B, such that X(ω)=0 for all ∣ω∣≥B, can be fully recovered from its sample xD[n] if ωS≥2B,
where ωS=TS2π is the sampling frequency, and B is called the Nyquist rate.
Note (Aliasing) ωs<2B), frequency components overlap with one another and cause distortion known as aliasing. Aliasing makes it impossible to distinguish higher frequencies from lower ones, leading to an inaccurate representation of the original signal. The effects of aliasing can be mitigated by pre-processing the xD[n] with a low pass (anti-aliasing) filter, as explained below.
If the condition is not met (
Intuition
Examples
The Carriage Wheel Effect
Have you ever seen the wheels move the opposite way in a car commercial? That is called the carriage wheel effect. Suppose a wheel can be modeled by x(t)=ejω0t; intuitively, this makes sense, since as t→∞, x(t) moves periodically anti-clockwise. Then, using CTFT, X(ω)=2πδ(ω−ω0). We sample x(t) at ωS=TS2π.
Suppose we choose the sampling frequency ωS=ω0. Then, x[n] appears to be stationary. Intuitively, if ωS is the frame rate (frames per second), and ω0 measures the spin of the wheels of the car, then each frame is recorded exactly at the same spot of the wheel. We can verify this by taking the CTFT of the impulse train, Z(ω)=ωS∑k=−∞∞δ(ω−kωS), and performing the modulation