Sampling
Sampling
Sampling Theorem
Sampling theorem plays a crucial role in modern digital signal processing. The the-
orem concerns about the minimum sampling rate required to convert a continuous
time signal to a digital signal, without loss of information.
83
84 CHAPTER 6. SAMPLING THEOREM
where T is the period of the impulse train. Multiplying x(t) with p(t) yields
xp (t) = x(t)p(t)
X1
= x(t) (t nT )
n= 1
1
X
= x(t) (t nT )
n= 1
X1
= x(nT ) (t nT ).
n= 1
Pictorially, xp (t) is a set of impulses bounded by the envelop x(t) as shown in Fig.
6.2.
Figure 6.2: An example of A/D conversion. The output signal xp (t) represents a set
of samples of the signal x(t).
We may regard xp (t) as the samples of x(t). Note that xp (t) is still a continuous-time
signal! (We can view xp (t) as a discrete-time signal if we define xp [n] = x(nT ). But
this is not an important issue here.)
This means that the frequency response of the impulse train p(t) is another impulse
train. The only di↵erence is that the period of p(t) is T , whereas the period of P (j!)
is 2⇡
T
.
Shown in Fig. 6.3 are the frequency response of X(j!) and P (j!) respectively. To
perform the convolution in frequency domain, we first note that P (j!) is an impulse
train. Therefore, convolving X(j!) with P (j!) is basically producing replicates at
every 2⇡
T
. The result is shown in Fig. 6.4.
Figure 6.4: Convolution between X(j!) and P (j!) yields periodic replicates of
X(j!).
the period 2⇡
T
reduces! In other words, the impulses are more packed in frequency
domain when T increases. Fig. 6.6 illustrates this idea.
Figure 6.7: When T is sufficiently large, there will be overlap between consecutive
replicates.
Therefore, in order to avoid aliasing, T cannot be too large. If we define the sampling
rate to be
2⇡
!s = ,
T
then smaller T implies higher !s . In other words, there is a minimum sampling rate
such that no aliasing occurs.
Figure 6.8: Meanings of high sampling rate v.s. low sampling rate.
Here, let us assume that the signal x(t) is band-limited. That is, we assume X(j!) = 0
for all |!| > W , where W is known as the band-width.
Figure 6.9: Left: A band limited signal (since X(j!) = 0 for all ! > |W |.) Right: A
band non-limited signal.
!s > 2W,
2⇡
where !s = T
.
6.3.1 Explanation
Suppose x(t) has bandwidth W . The tightest arrangement that no aliasing occurs is
shown in Fig. 6.10
2⇡
In this case, we see that the sampling rate !s (= T
) is
!s = 2W.
90 CHAPTER 6. SAMPLING THEOREM
!s > 2W.
6.3.2 Example
Suppose there is a signal with maximum frequency 40kHz. What is the minimum
sampling rate ?
Answer :
Since ! = 2⇡f , we know that the max frequency (in rad) is ! = 2⇡(40 ⇥ 103 ) =
80 ⇥ 103 ⇡ (rad). Therefore, the minimum Sampling rate is: 2 ⇥ (80 ⇥ 103 ⇡), which is
160 ⇥ 103 ⇡ (rad) = 80kHz.
Figure 6.12: Schematic diagram of recovering x(t) from xp (t). The filter H(j!) is
assumed to be an ideal lowpass filter.
Then 1
1X
Xp (j!) = X(j(! k!s )).
T 1
As shown in the top left of Fig. 6.13, Xp (j!) is a periodic replicate of X(j!). Since
we assume that there is no aliasing, the replicate covering the y-axis is identical to
X(j!). That is, for |!| < !2s ,
Xp (j!) = X(j!).
Now, if we apply an ideal lowpass filter (shown in bottom left of Fig. 6.13):
(
1, |!| < !2s ,
H(j!) =
0, otherwise,
then
Xp (j!)H(j!) = X(j!),
for all !. Taking the inverse continuous-time Fourier transform, we can obtain x(t).
6.4.2 If Xp (t) has aliasing, can I still recover x(t) from xp (t) ?
The answer is NO. If aliasing occurs, then the condition
Xp (j!) = X(j!)
92 CHAPTER 6. SAMPLING THEOREM
Figure 6.13: Left: Multiplication between Xp (j!) and the lowpass filter H(j!). The
extracted output X̂(j!) is identical to X(j!) if no aliasing occurs. By applying
inverse Fourier transform to X̂(j!) we can obtain x(t).
does not hold for all |!| < !2s . Consequently, even if we apply the lowpass filter H(j!)
to Xp (j!), the result is not X(j!). This can be seen in Fig. 6.14.
Figure 6.14: If aliasing occurs, we are unable to recover x(t) from xp (t) by using an
ideal lowpass filter.
6.4. DIGITAL TO ANALOG CONVERSION 93
• Method 2: Send signals with narrower bandwidth or limit the bandwidth be-
fore sending :