Quantization Partition
Quantization Partition
Quantization Codebook:
• For each interval in your partition, assign a representative value (this value will be
used to represent all input values that fall within that interval).
• Write down your codebook (the representative values for each interval).
Quantization Partition:
divide the range [-5, 5] into 4 equal intervals.
1. Interval 1: [-5, -2.5)
2. Interval 2: [-2.5, 0)
3. Interval 3: [0, 2.5)
4. Interval 4: [2.5, 5]
Quantization Codebook:
Now, assign a representative value for each interval. Typically, this is the midpoint of the interval.
1. Interval 1: Representative value = (−5+(−2.5))/2=−3.75
2. Interval 2: Representative value = (−2.5+0)/2=−1.25
3. Interval 3: Representative value = (0+2.5)/2=1.25
4. Interval 4: Representative value =
disp(partitions);
-5.0000 -2.5000 0 2.5000 5.0000
disp('Codebook Values:');
Codebook Values:
disp(codebook);
-3.7500 -1.2500 1.2500 3.7500