![]() |
Quantization is a key part of the digital signal processing chain where continuous analog signals are converted into discrete digital signals. Such conversion is essential for many applications in digital communications, audio processing, image compression and more. Engineers and practitioners who design digital systems should understand these nuances since quantization affects the accuracy and efficiency with which signals can be represented. There are two kinds of quantization namely uniform and non-uniform. They have different properties, advantages and uses of each type. Uniform quantization is simple to implement, it has equal step sizes and is really best suited for signals with high signal-to-noise ratio (SNR). Variable step sizes, known as nonuniform quantization, on the other hand delivers improved performance with signals having a non-uniform amplitude distribution and in low SNR. This article will go into depth with the ideas of quantization, differences between uniform and non-uniform quantization as well as their use cases and benefits. What is Quantization?Quantization is the process of mapping a large set of input values to a (countable) smaller subset, such as limited component resolution or digital signal sampling. It is a very important step in analog-to-digital conversion (ADC) when the continuous range of an analogue signal is divided into discrete levels and each level has its own digital code which corresponds to it. While Quantization brings quantization error, the difference between true analog value and it’s quantized digital form. The objective is to reduce this error while representing the signal in an efficient way. What is Uniform Quantization?Uniform quantization is a technique in which the range of an input signal is divided into number of zones equally spaced. Because the quantization levels are linearly spaced, you get a uniform step size between each of them. This method is very simple and easy to install. This uniform property makes it ideal for signals with a high SNR (compared to all the sounds that have ever existed, these tones are very loud!) and a uniform noise level distribution within amplitude. Types of Uniform Quantization
![]() Graph of Mid-Rise and Mid-Tread type uniform quantization What is Non-uniform Quantization?Non-Uniform quantization on the other hand, uses variable size steps. Instead of equally spaced intervals it uses smaller steps where the signal amplitude is most likely to be and larger step with lower probability. This method is especially one way to overcome the quantization error in case of signals with nonuniform amplitude distributions, such as speech (such amplitudes depend a lot on each word). Non-uniform quantization can be more difficult to implement but provides better performance for specific applications. Formula and Derivation of Uniform and Non-Uniform QuantizationUniform Quantization1. FormulaIn uniform quantization, the range of the input signal is divided into [Tex]{L}[/Tex] equally spaced levels. The step size [Tex](\Delta)[/Tex] is calculated as: [Tex] \Delta = \frac{V_{max} – V_{min}}{L} [/Tex] where:
2. DerivationLet’s derive the formula for uniform quantization:
Once the step size is determined, each input value [Tex]{x}[/Tex] can be quantized to the nearest level using: [Tex] Q(x) = \Delta \cdot \left\lfloor \frac{x – V_{min}}{\Delta} + 0.5 \right\rfloor + V_{min} [/Tex] This equation ensures that each input value is mapped to the nearest quantization level. Non-Uniform Quantization1. FormulaNon-uniform quantization often uses a companding approach, where the signal is first compressed, uniformly quantized, and then expanded. The compression and expansion functions can vary, but a common method is to use a logarithmic companding function. For example, the [Tex]\mu[/Tex]-law companding used in telephony is given by: [Tex]y = \text{sgn}(x) \cdot \frac{\ln(1 + \mu |x|)}{\ln(1 + \mu)}[/Tex] where:
2. DerivationThe steps for non-uniform quantization using [Tex]\mu[/Tex] law companding are as follows: 1. Compression: Apply the compression function to the input signal [Tex]{x}[/Tex]: [Tex]y = \text{sgn}(x) \cdot \frac{\ln(1 + \mu |x|)}{\ln(1 + \mu)}[/Tex] 2. Uniform Quantization: Quantize the compressed signal [Tex]{y}[/Tex] using uniform quantization. 3. Expansion: Apply the inverse of the compression function to the quantized value [Tex]{y_q}[/Tex] : [Tex] x_q = \text{sgn}(y_q) \cdot \left( \frac{1}{\mu} \left( (1 + \mu)^{|y_q|} – 1 \right) \right)[/Tex] This process ensures that the quantization error is minimized in regions where the signal amplitude is more likely to occur, providing better performance for non-uniformly distributed signals. Waveform of Uniform and Non-Uniform QuantizationUniform Quantization WaveformIn uniform quantization, the quantized output signal consists of equally spaced steps. Each step corresponds to a specific range of the input signal. Here’s a conceptual representation:
Non-Uniform Quantization WaveformIn non-uniform quantization, the quantized output signal consists of variably spaced steps. The steps are smaller in regions where the signal amplitude is more likely, resulting in finer quantization and reduced error in those regions. Here’s a conceptual representation:
The non-uniform quantization waveform shows smaller steps in regions with higher probability of occurrence and larger steps in less likely regions. This allows for more precise representation of critical parts of the signal, reducing the overall quantization error. Difference Between Uniform and Non-Uniform QuantizationIn the following table some of the differences of Uniform Quantization and Non-Uniform Quantization is mentioned.
ConclusionQuantization is a critical step in digital signal processing, used to accurately convert analog signals into the numeric values that can be processed by software. In this chapter we have considered uniform quantization and also non-uniform quantization as two separate types of the element. This analysis helps in picking the right method for a specific application which would lead to an optimized signal representation solution. On the one hand, uniform quantization is easy and works for high SNR signals with equiprobable distribution; on the other non-uniform quantization are better dealing to low-SNR signals with unequal probability (not uniformly distributed). Frequently Added Questions on Uniform and Non – Uniform Quantization -FAQ’SWhy is non-uniform quantization preferable over uniform quantization?
How does companding work in non-uniform quantization?
Can uniform quantization be used for all types of signals?
|
Reffered: https://www.geeksforgeeks.org
Electronics Engineering |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 16 |