Lably
Skip to content

Quantization (signal processing)

Process of mapping a continuous set to a countable set

  • 17 min read
  • 6 chapters

Related on Lably

Through Mathematics, Cardinality and Rounding

The difference between an input value and its quantized value (such as round-off error) is referred to as quantization error, noise or distortion. A device or algorithmic function that performs quantization is called a quantizer. An analog-to-digital converter is an example of a quantizer.

Example

For example, rounding a real number x to the nearest integer value forms a very basic type of quantizer – a uniform one. A typical (mid-tread) uniform quantizer with a quantization step size equal to some value Δ can be expressed as

Q(x)=Δ⋅⌊xΔ+12⌋,

where the notation ⌊⌋ denotes the floor function.

Alternatively, the same quantizer may be expressed in terms of the ceiling function, as

Q(x)=Δ⋅⌈xΔ−12⌉.

(The notation ⌈⌉ denotes the ceiling function).

The essential property of a quantizer is having a countable set of possible output values smaller than the set of possible input values. The members of the set of output values may have integer, rational, or real values. For simple rounding to the nearest integer, the step size Δ is equal to 1. With Δ=1 or with Δ equal to any other integer value, this quantizer has real-valued inputs and integer-valued outputs.

When the quantization step size (Δ) is small relative to the variation in the signal being quantized, it is relatively simple to show that the mean squared error produced by such a rounding operation will be approximately Δ2/12. Mean squared error is also called the quantization noise power. Adding one bit to the quantizer halves the value of Δ, which reduces the noise power by the factor ⁠1/4⁠. In terms of decibels, the noise power change is 10⋅log10⁡(1/4)≈−6dB.

Because the set of possible output values of a quantizer is countable, any quantizer can be decomposed into two distinct stages, which can be referred to as the classification stage (or forward quantization stage) and the reconstruction stage (or inverse quantization stage), where the classification stage maps the input value to an integer quantization index k and the reconstruction stage maps the index k to the reconstruction value yk that is the output approximation of the input value. For the example uniform quantizer described above, the forward quantization stage can be expressed as

k=⌊xΔ+12⌋,

and the reconstruction stage for this example quantizer is simply

yk=k⋅Δ.

This decomposition is useful for the design and analysis of quantization behavior, and it illustrates how the quantized data can be communicated over a communication channel – a source encoder can perform the forward quantization stage and send the index information through a communication channel, and a decoder can perform the reconstruction stage to produce the output approximation of the original input data. In general, the forward quantization stage may use any function that maps the input data to the integer space of the quantization index data, and the inverse quantization stage can conceptually (or literally) be a table look-up operation to map each quantization index to a corresponding reconstruction value. This two-stage decomposition applies equally well to vector as well as scalar quantizers.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication