EE-322 Lecture-12 (Quantization)
EE-322 Lecture-12 (Quantization)
EE322
Analog & Digital Communication
Dr. Imran Javed
(Lecture-12)
Quantization
• After sampling, we get a discrete time signal
• However, the amplitude of the signal is still continuous
• By quantization, we discretize the amplitude of signal
• Performing both sampling and quantization, we finally
get a discrete-time finite-amplitude signal, where each
sample can be represented by finite number of bits
• In scalar quantization, each sample is quantized
individually
• In vector quantization, a block of samples is quantized
together at a time
1
21/04/2025
Scalar Quantization
• Each sample is quantized into one of the chosen
finite number of levels
• Basically, each sample is rounded to the nearest
value from the set of possible quantization levels
• The amplitude axis is partitioned into N disjoint
subsets denoted by 𝑅𝑘 , 1 ≤ 𝑘 ≤ 𝑁
• Each subset is called as quantization region
• Corresponding to each 𝑅𝑘 , a quantization level
𝑥ො𝑘 is chosen which is the quantized version of
actual sample amplitude 𝑥 in that region.
4/21/2025 EE UET Lahore 3
2
21/04/2025
3
21/04/2025
4
21/04/2025
10
5
21/04/2025
Q-function
11
12
6
21/04/2025
SQNR
13
14
7
21/04/2025
15
16
8
21/04/2025
Optimal quantization
spacing for standard
Gaussian random
source
17
PCM
• It is a baseband scheme that can be used to represent any
analog signal in digital form
18
9
21/04/2025
19
PCM (cont’d)
20
10
21/04/2025
Q-7.10
• Using Table 7.1, design an optimal quantizer
for the source given in Example 7.2.1
• Compare the distortion of this quantizer to the
distortion obtained there.
21
Solution
∆
𝑥ො𝑖 = 𝑥ො𝑖−1 + ∆= 𝑎1 + 𝑖 − 1 ∆ −
2
22
11
21/04/2025
Q-7.9
23
Solution
24
12
21/04/2025
Solution (cont’d)
25
13