Professional Documents
Culture Documents
3/55
i) Uniform Quantization of Uniformly distributed
Sources
If the source is uniformly distributed in [–Xmax, Xmax], the output
is quantized by an M-level uniform quantizer, then the
quantization step size is given by
2X max
M
Ex: -4 -2 0 2 4, ∆ = 2(4) / 4 = 2
and the distortion is
M/
2i 1
(i1) x 12
i 2
σ 2 2
dx 2
q
2 i1 2 max . 12
X
Here 1 1
f X ( x)
i (i 1) (2i 1) ( X max X max ) 2 X max
Mean
2 2
Alternative method for MSQE Derivation
We can also compute the MSQE by examining the behaviour
of quantization error q given by
q = x – Q(x),
Figure shows quantization Error versus input signal for eight
level uniform quantizer ( midrise type) . The quantization Error
q [–∆/2, ∆/2] . As the input is uniform, the quantization
error is also uniform over this interval.
1 1
fQ (q)
2 2
since
• Thus for every additional bit in the quantizer, we get an increase
in the signal-to-noise ratio of 6.02 dB.
• Quite often the sources we deal with do not have a uniform distribution;
however, we still want the simplicity of a uniform quantizer.
• In these cases, even if the sources are bounded, simply dividing the range of
the input by the number of quantization levels does not produce a very good
design.
• This approach becomes totally impractical when we model our sources with
distributions that are unbounded, such as the Gaussian distribution.
Therefore, the PDF (Probability Density Function) of the source is to
included in the design process.
• If the input is unbounded, the quantization error is no longer
bounded either.
• In the expression for the MSQE ,the first term represents the granular
noise, while the second term represents the overload noise. The
probability that the input will fall into the overload region is called
the overload probability.
Mismatching effects
• When assumed distribution type matches the
actual distribution type, but the variance of
the input is different from the assumed
variance.
• The second mismatch is, when the actual
distribution type is different from the
distribution type assumed when obtaining the
value of the step size.
Variance mismatching
Adaptive quantization
• One way to deal with the mismatch problem is
to adapt the quantizer to the statistics of the
input.
• there are main approaches to adapt the
quantizer parameters are
1) Offline(farward adaptive approach)
2) Online(back ward adaptive approach)
Block diagram of adaptive quantizer
Forward adaptive (encoder-side analysis)
Divide input source in blocks
Analyze block statistics
Set quantization scheme
Send the scheme to the decoder via side channel
---- Eqn2
• The output point for each quantization interval is the
centroid of the probability mass in that interval.
• Taking the derivative with respect to bj and setting it
equal to zero, we get an expression for bj as
----Eqn 3
--- Eqn 4
• The decision boundary is simply the midpoint of the
two neighboring reconstruction levels.
• The reconstruction levels {y−1 ,y−2 , .... y−M2} and the decision
boundaries {b−1b−2 b−(M/2 −1) can be obtained through
symmetry.
• The decision boundary b0 is zero, and the decision boundary
bM/2 is simply the largest value the input can take on (for
unbounded inputs this would be ꝏ).
• Let j =1
------ Eqn 5
• As b0 is known to be 0, we have two unknowns in
this equation, b1 and y1.
• We make a guess at y1 and later we will try to refine
this guess.
• Using this guess in Equation 5, we numerically find
the value of b1 that satisfies Equation 5.
• Setting j equal to 1 in Equation 4 ,
y2 = 2b1 +y1
This value of y2 can then be used in Equation 2 with
j = 2 to find b2, which in turn can be used to find y3.