Professional Documents
Culture Documents
2
Introducing sampling and reconstruction
Sampling
Reconstruction
3
Introducing sampling and reconstruction
Sampling
Reconstruction
4
Introducing sampling and reconstruction
5
Introducing sampling and reconstruction
6
Introducing sampling and reconstruction
7
Sampling
• If 𝑥𝑥 is a CT signal and 𝑇𝑇𝑠𝑠 is a sampling period, we can define the sampled (DT)
signal 𝑥𝑥𝑠𝑠 :
• The higher the sampling frequency is, the better 𝑥𝑥𝑠𝑠 approximates 𝑥𝑥 .
8
Sampling and aliasing with sinusoids
9
Sampling and aliasing with sinusoids
• Sampling cos 𝜋𝜋𝜋𝜋 and cos 9𝜋𝜋𝜋𝜋 with sampling period 𝑇𝑇𝑠𝑠 = 0.25
seconds:
10
Sampling and aliasing with sinusoids
• Sampling cos 𝜋𝜋𝜋𝜋 and cos 9𝜋𝜋𝜋𝜋 with sampling period 𝑇𝑇𝑠𝑠 = 0.25
seconds:
There are (infinitely many) CT signals that, if sampled with sampling period 𝑇𝑇𝑠𝑠 ,
give us exactly the same 𝑥𝑥𝑠𝑠 .
11
Sampling and aliasing with sinusoids
12
Example: Sampling and aliasing with sinusoids
13
Example: Sampling and aliasing with sinusoids
14
Example: Sampling and aliasing with sinusoids
15
Example: Sampling and aliasing with sinusoids
16
Example: Sampling and aliasing with sinusoids
17
Example: Sampling and aliasing with sinusoids
18
Example: Sampling and aliasing with sinusoids
19
Example: Sampling and aliasing with sinusoids
20
Example: Sampling and aliasing with sinusoids
21
Example: Sampling and aliasing with sinusoids
22
Avoiding aliasing with sinusoids
𝜋𝜋
• Sample with 𝑇𝑇𝑠𝑠 < → no aliasing
𝜔𝜔0
𝜋𝜋
• Sample with 𝑇𝑇𝑠𝑠 > → aliasing
𝜔𝜔0
23
Avoiding aliasing with sinusoids
𝜋𝜋
• Sample with 𝑇𝑇𝑠𝑠 < → no aliasing
𝜔𝜔0
𝜋𝜋
• Sample with 𝑇𝑇𝑠𝑠 > → aliasing
𝜔𝜔0
𝜋𝜋
If 𝑇𝑇𝑠𝑠 = then sampled signal is
𝜔𝜔0
𝜋𝜋 𝑛𝑛
cos 𝜔𝜔0 𝑇𝑇𝑠𝑠 𝑛𝑛 = cos 𝜔𝜔0 𝑛𝑛 = cos 𝜋𝜋𝜋𝜋 = −1
𝜔𝜔0
which is the fastest oscillating DT signal possible.
24
Example
𝜋𝜋
A. 𝑇𝑇𝑠𝑠 <
2
𝜋𝜋
B. 𝑇𝑇𝑠𝑠 <
6
C. 𝑇𝑇𝑠𝑠 < 𝜋𝜋
𝜋𝜋
D. 𝑇𝑇𝑠𝑠 <
3
25
Frequency-domain model of sampling
26
Frequency-domain model of sampling
27
Nyquist Frequency
𝜋𝜋
• Sinusoids with frequency 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 𝑇𝑇𝑠𝑠
are not aliased
𝜋𝜋
• Sinusoids with frequency 𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎 𝑇𝑇𝑠𝑠
are aliased
𝜋𝜋
Nyquist Frequency: rad/sec
𝑇𝑇𝑠𝑠
28
Frequency domain model of sampling
Then the DTFT X𝑠𝑠 of 𝑥𝑥𝑠𝑠 and the CTFT X of 𝑥𝑥 are related by:
∞
1 𝜔𝜔 − 2𝜋𝜋𝜋𝜋
X𝑠𝑠 𝜔𝜔 = � 𝑋𝑋( )
𝑇𝑇𝑠𝑠 𝑇𝑇𝑠𝑠
𝑙𝑙=−∞
(see notes for a derivation)
• The case 𝑇𝑇𝑠𝑠 = 1:
• one sample takes one second.
• The CTFT is aperiodic and the DTFT must be periodic.
• We can make the CTFT periodic by the shift-and-add summation: X𝑠𝑠 𝜔𝜔 =
∑∞
𝑙𝑙=−∞ 𝑋𝑋(𝜔𝜔 − 2𝜋𝜋𝜋𝜋)
29
Frequency domain model of sampling
Then the DTFT X𝑠𝑠 of 𝑥𝑥𝑠𝑠 and the CTFT X of 𝑥𝑥 are related by:
∞
1 𝜔𝜔 − 2𝜋𝜋𝜋𝜋
X𝑠𝑠 𝜔𝜔 = � 𝑋𝑋( )
𝑇𝑇𝑠𝑠 𝑇𝑇𝑠𝑠
𝑙𝑙=−∞
(see notes for a derivation)
30
Frequency-domain model of sampling
Case 𝑇𝑇𝑠𝑠 = 1
• To check the DTFT X𝑠𝑠 is 𝑥𝑥𝑠𝑠 :
∞
1 2𝜋𝜋 1 2𝜋𝜋
� X𝑠𝑠 𝜔𝜔 𝑒𝑒 𝑗𝑗𝑗𝑗𝑗𝑗 𝑑𝑑𝑑𝑑 = � � 𝑋𝑋(𝜔𝜔 − 2𝜋𝜋𝜋𝜋) 𝑒𝑒 𝑗𝑗𝑗𝑗𝑗𝑗 𝑑𝑑𝑑𝑑
2𝜋𝜋 0 2𝜋𝜋 0
𝑙𝑙=−∞
∞2𝜋𝜋𝑙𝑙+2𝜋𝜋
1 ′
= � � 𝑋𝑋(𝜔𝜔′) 𝑒𝑒 𝑗𝑗(𝜔𝜔 +2𝜋𝜋𝜋𝜋)𝑛𝑛 𝑑𝑑𝜔𝜔′
2𝜋𝜋 2𝜋𝜋𝜋𝜋
𝑙𝑙=−∞
∞2𝜋𝜋𝜋𝜋+2𝜋𝜋
1 ′
= � � 𝑋𝑋(𝜔𝜔𝜔) 𝑒𝑒 𝑗𝑗𝜔𝜔 𝑛𝑛 𝑑𝑑𝜔𝜔′
2𝜋𝜋 2𝜋𝜋𝜋𝜋
𝑙𝑙=−∞
1 ∞ 𝑗𝑗𝜔𝜔 ′ 𝑛𝑛
= � 𝑋𝑋(𝜔𝜔𝜔) 𝑒𝑒 𝑑𝑑𝜔𝜔′
2𝜋𝜋 −∞
= 𝑥𝑥 𝑛𝑛 = 𝑥𝑥𝑠𝑠 𝑛𝑛 .
31
General sampling period
Consider sampling the signal with period 𝑇𝑇𝑠𝑠 as a composition of time-scaling and then
sampling with period 1, If 𝑥𝑥 is a CT signal,
• Let y t = 𝑥𝑥 𝑡𝑡𝑇𝑇𝑠𝑠 be a signal obtained by time-scaling 𝑥𝑥.
• Then xs n = 𝑥𝑥 𝑛𝑛𝑇𝑇𝑠𝑠 = 𝑦𝑦(𝑛𝑛) for all 𝑛𝑛.
• Sampling y with sampling period 1 is the same as sampling x with sampling period 𝑇𝑇𝑠𝑠 .
• If 𝑌𝑌is the CTFT of 𝑦𝑦 then:
X𝑠𝑠 𝜔𝜔 = ∑∞
𝑙𝑙=−∞ 𝑌𝑌(𝜔𝜔 − 2𝜋𝜋𝜋𝜋)
32
Bandwidth
Example:
33
Bandwidth and aliasing
CTFT of x is:
∞
1 𝜔𝜔 − 2𝜋𝜋𝜋𝜋
X𝑠𝑠 𝜔𝜔 = � 𝑋𝑋( )
𝑇𝑇𝑠𝑠 𝑇𝑇𝑠𝑠
𝑙𝑙=−∞ 34
Bandwidth and aliasing
CTFT of x is:
∞
1 𝜔𝜔 − 2𝜋𝜋𝜋𝜋
X𝑠𝑠 𝜔𝜔 = � 𝑋𝑋( )
𝑇𝑇𝑠𝑠 𝑇𝑇𝑠𝑠
𝑙𝑙=−∞ 35
Bandwidth and aliasing
If Ts ≥ 𝜋𝜋/𝑊𝑊gives overlapping copies:
1 𝜔𝜔
taking copies of 𝑋𝑋( ) shifted by multiples of 2𝜋𝜋:
𝑇𝑇𝑠𝑠 𝑇𝑇𝑠𝑠
36
Bandwidth and aliasing
37
Bandwidth and aliasing
38
Nyquist Frequency (revisited)
𝜋𝜋
• Signals with bandwidth 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 𝑇𝑇𝑠𝑠
are not aliased
𝜋𝜋
• Signals with bandwidth 𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎 𝑇𝑇𝑠𝑠
are aliased
𝜋𝜋
Nyquist Frequency: rad/sec
𝑇𝑇𝑠𝑠
39
Conclusion
40