1 Quantization Error Analysis Author: Anil Pothireddy 12/10/2002 12/10/2002.

Slides:



Advertisements
Similar presentations
Physical Layer: Signals, Capacity, and Coding
Advertisements

Chapter 3: PCM Noise and Companding
Pulse Code Modulation Pulse Code Modulation
EET260: A/D and D/A conversion
Sampling and Pulse Code Modulation
Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
Analogue to Digital Conversion (PCM and DM)
Speech Compression. Introduction Use of multimedia in personal computers Requirement of more disk space Also telephone system requires compression Topics.
Physical Layer – Part 2 Data Encoding Techniques
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Quantization Prof. Siripong Potisuk.
Networks: Data Encoding1 Data Encoding Techniques.
Communication Systems
Digital Voice Communication Link EE 413 – TEAM 2 April 21 st, 2005.
Data Encoding Techniques
Science is organized knowledge. Wisdom is organized life.
Chapter 4 Digital Transmission
SIMS-201 Audio Digitization. 2  Overview Chapter 12 Digital Audio Digitization of Audio Samples Quantization Reconstruction Quantization error.
Noise and SNR. Noise unwanted signals inserted between transmitter and receiver is the major limiting factor in communications system performance 2.
Pulse Modulation 1. Introduction In Continuous Modulation C.M. a parameter in the sinusoidal signal is proportional to m(t) In Pulse Modulation P.M. a.
©2003/04 Alessandro Bogliolo Background Information theory Probability theory Algorithms.
Random Processes and LSI Systems What happedns when a random signal is processed by an LSI system? This is illustrated below, where x(n) and y(n) are random.
Formatting and Baseband Modulation
Formatting and Baseband Modulation
Fundamentals of Digital Communication
Chapter Seven: Digital Communication
DIGITAL VOICE NETWORKS ECE 421E Tuesday, October 02, 2012.
COSC 3213 – Computer Networks I Summer 2003 Topics: 1. Line Coding (Digital Data, Digital Signals) 2. Digital Modulation (Digital Data, Analog Signals)
GODIAN MABINDAH RUTHERFORD UNUSI RICHARD MWANGI.  Differential coding operates by making numbers small. This is a major goal in compression technology:
Pulse Code Modulation (PCM)
COMMUNICATION SYSTEM EEEB453 Chapter 5 (Part IV) DIGITAL TRANSMISSION.
10/6/2015 3:12 AM1 Data Encoding ─ Analog Data, Digital Signals (5.3) CSE 3213 Fall 2011.
Signal Encoding Techniques. Lecture Learning Outcomes Be able to understand, appreciate and differentiate the different signal encoding criteria available.
Chapter #5 Pulse Modulation
CE Digital Signal Processing Fall 1992 Waveform Coding Hossein Sameti Department of Computer Engineering Sharif University of Technology.
8. 1 MPEG MPEG is Moving Picture Experts Group On 1992 MPEG-1 was the standard, but was replaced only a year after by MPEG-2. Nowadays, MPEG-2 is gradually.
British Computer Society (BCS)
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
Basic Encoding Techniques
Introduction to Digital Signals
IT-101 Section 001 Lecture #9 Introduction to Information Technology.
Prof. Hosny Ibrahim Lecture 5. Data Communication IT 221 By: Prof. Hosny M. Ibrahim 2.
4.2 Digital Transmission Pulse Modulation Pulse Code Modulation
COMMUNICATION SYSTEM EEEB453 Chapter 5 (Part III) DIGITAL TRANSMISSION Intan Shafinaz Mustafa Dept of Electrical Engineering Universiti Tenaga Nasional.
Power spectral density (PSD)… of ASK,PSK and FSK
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
Fundamentals of Multimedia Chapter 6 Basics of Digital Audio Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
بسم الله الرحمن الرحيم Digital Signal Processing Lecture 2 Analog to Digital Conversion University of Khartoum Department of Electrical and Electronic.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
Principios de Comunicaciones EL4005
Analog to digital conversion
Topics discussed in this section:
DIGITIAL COMMUNICATION
UNIT II.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Quantization and Encoding
Sampling rate conversion by a rational factor
Context-based Data Compression
Physical Layer – Part 2 Data Encoding Techniques
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Soutenance de thèse vendredi 24 novembre 2006, Lorient
Chapter 3: Pulse Code Modulation
لجنة الهندسة الكهربائية
Digital Control Systems Waseem Gulsher
Chapter 3: PCM Noise and Companding
PCM & DPCM & DM.
Sampling and Quantization
Conceptual Representation of A/D Conversion
Physical Layer – Part 2 Data Encoding Techniques
Presentation transcript:

1 Quantization Error Analysis Author: Anil Pothireddy 12/10/ /10/2002

2 Organization of the Presentation Introduction to Quantization. Introduction to Quantization. Quantization Error Analysis. Quantization Error Analysis. Quantization Error Reduction Techniques. Quantization Error Reduction Techniques.

3 QUANTIZATION Definition : The transformation of a signal x[n] into one of a set of prescribed values. Definition : The transformation of a signal x[n] into one of a set of prescribed values. Quantization converts a Discrete-Time Signal to a Digital Signal. Quantization converts a Discrete-Time Signal to a Digital Signal. MATHEMATICAL REPRESENTATION: MATHEMATICAL REPRESENTATION: x q [n] = Q( x[n] )

4 EXAMPLE OF QUANTIZATION (a) Unquantized samples of x[n] = 0.99cos(n/10). (b) with a 3-bit quantizer.

5 QUANTIZER Quantizers can be defined with either uniformly or non uniformly spaced quantization levels. Quantizers can be defined with either uniformly or non uniformly spaced quantization levels. Quantizers can also be customized to work on either uni-polar or bipolar signals. Quantizers can also be customized to work on either uni-polar or bipolar signals.

6 TYPICAL QUANTIZER

7 QUANTIZATION LEVELS In the previous figure, the 8-quantization levels, can be labeled using a binary code of 3–bits. In the previous figure, the 8-quantization levels, can be labeled using a binary code of 3–bits. In general, to represent B-quantization levels we need log 2 B(rounded to next highest integer) bits. In general, to represent B-quantization levels we need log 2 B(rounded to next highest integer) bits. The step size of the quantizer will be: The step size of the quantizer will be: ∆ = 2X m / 2 B ∆ = 2X m / 2 B

8 ADVANTAGES OF QUANTIZATION The quantized signal, which is an approximation of the original signal, can be more efficiently separated from ADDITIVE NOISE. (by using repeaters). The quantized signal, which is an approximation of the original signal, can be more efficiently separated from ADDITIVE NOISE. (by using repeaters). Transmission bandwidth can be controlled by using an appropriate number of quantization levels (and hence the bits to represent them). Transmission bandwidth can be controlled by using an appropriate number of quantization levels (and hence the bits to represent them).

9 QUANTIZATION ERROR The quantized sample will generally differ from the original signal. The difference between them is called the quantization error. The quantized sample will generally differ from the original signal. The difference between them is called the quantization error. e[n] = x q [n] - x[n] For a 3-bit Quantizer, if ∆/2 < x[n] =< 3 ∆/2, then x q [n] = ∆, and it follows that: For a 3-bit Quantizer, if ∆/2 < x[n] =< 3 ∆/2, then x q [n] = ∆, and it follows that: -∆/2 < e[n] =< ∆/2 -∆/2 < e[n] =< ∆/2

10 QUANTIZER MODEL In this model, the quantization error samples are thought of as an ADDITIVE NOISE SIGNAL. (The model is exactly equivalent to a Quantizer if e[n] is exactly known). In this model, the quantization error samples are thought of as an ADDITIVE NOISE SIGNAL. (The model is exactly equivalent to a Quantizer if e[n] is exactly known).

11 STATISTICAL REPRESENTATION OF QUANTIZATION ERRORS ASSUMPTIONS e[n] is a sample sequence of a stationary random process. e[n] is a sample sequence of a stationary random process. e[n] is uncorrelated with the sequence x[n]. e[n] is uncorrelated with the sequence x[n]. The random variables of the error process are uncorrelated. The random variables of the error process are uncorrelated. The probability distribution of the error process is uniform over the range of quantization error. The probability distribution of the error process is uniform over the range of quantization error.

12 QUANTIZATION ERROR (3-BIT & 8-BIT)

13 STATISTICAL REPRESENTATION OF QUANTIZATION ERRORS (2) We know that : -∆/2 < e[n] =< ∆/2 We know that : -∆/2 < e[n] =< ∆/2 For small ∆,it is reasonable to assume that e[n] is a Random variable uniformly distributed from - -∆/2 to ∆/2. For small ∆,it is reasonable to assume that e[n] is a Random variable uniformly distributed from - -∆/2 to ∆/2. Thus e[n] is a uniformly distributed white-noise sequence Thus e[n] is a uniformly distributed white-noise sequence The mean value of e[n] = 0. The mean value of e[n] = 0.

14 STATISTICAL REPRESENTATION OF QUANTIZATION ERRORS (3)

15 STATISTICAL REPRESENTATION OF QUANTIZATION ERRORS (4)

16 OBSERVATIONS We see that the signal-to-noise ratio increases approximately 6dB for each bit added to the word length of the Quantized samples. We see that the signal-to-noise ratio increases approximately 6dB for each bit added to the word length of the Quantized samples. If σ x = X m / 4 then: SNR (approx) = 6B – 1.25dB. If σ x = X m / 4 then: SNR (approx) = 6B – 1.25dB. Obtaining a 90-96dB SNR for use in High- Quality audio requires a 16-bit Quantization. Obtaining a 90-96dB SNR for use in High- Quality audio requires a 16-bit Quantization.

17 QUANTIZATION ERROR REDUCTION TECHNIQUES. INCREASING THE SAMPLING RATE. INCREASING THE SAMPLING RATE. DIFFERENTIAL QUANTIZATION. DIFFERENTIAL QUANTIZATION. NON UNIFORM QUANTIZATION NON UNIFORM QUANTIZATION

18 INCREASING THE SAMPLING RATE It has been proved that: for every doubling of the oversampling ratio M, we need ½ bit less to achieve a given Signal-to-Quantization-Noise ratio. It has been proved that: for every doubling of the oversampling ratio M, we need ½ bit less to achieve a given Signal-to-Quantization-Noise ratio. If we oversample by a factor M=4, we need one less bit to achieve a desired accuracy in representing a signal. (i.e. M = 4 (no of bits reduced) ). If we oversample by a factor M=4, we need one less bit to achieve a desired accuracy in representing a signal. (i.e. M = 4 (no of bits reduced) ). This technique is of little practical importance, as it involves a rather high overhead This technique is of little practical importance, as it involves a rather high overhead

19 DIFFERENTIAL QUANTIZATION In many practical situations, due to the statistical nature of the message signal, the sequence x[n] will consist of samples that are correlated with each other. In many practical situations, due to the statistical nature of the message signal, the sequence x[n] will consist of samples that are correlated with each other. For a given number of levels per sample, differential quantization schemes yield a lower value of quantizing noise value than direct quantizing schemes. For a given number of levels per sample, differential quantization schemes yield a lower value of quantizing noise value than direct quantizing schemes.

20 DIFFERENTIAL QUANTIZING SCHEME The error reduction is possible as long as the sample to sample correlation is non-zero. The error reduction is possible as long as the sample to sample correlation is non-zero.

21 EXAMPLE PROBLEM

22 SOLUTION

23 NON UNIFORM QUANTIZATION The qunatization error (noise) depends on the step size ∆. Hence if the steps are uniform in size, small-amplitude signals will have a poor Signal-to-Quantization-Noise ratio. The qunatization error (noise) depends on the step size ∆. Hence if the steps are uniform in size, small-amplitude signals will have a poor Signal-to-Quantization-Noise ratio. To illustrate this effect, assume a full scale voltage of 10V and that the actual resolution is +/- 4mV (i.e. ∆ = 8mV). To illustrate this effect, assume a full scale voltage of 10V and that the actual resolution is +/- 4mV (i.e. ∆ = 8mV). When the signal is close to 10V, the peak quantization error is in the neighborhood of (4mV / 10V ) * 100% = 0.04%. When the signal level hovers around 10mV, the error is in the vicinity of (4mV / 10mV) * 100% = 40% !!!

24 NON UNIFORM QUANTIZATION (2) The severity of this problem depends on the dynamic range of the signal and the number of bits used in encoding (quantizing). The severity of this problem depends on the dynamic range of the signal and the number of bits used in encoding (quantizing). In theory, a sufficient number of bits could be added to decrease the peak quantization error to a more tolerable level, but this is an inefficient and often impractical process. In theory, a sufficient number of bits could be added to decrease the peak quantization error to a more tolerable level, but this is an inefficient and often impractical process.

25 COMPANDING To correct this situation within the constraint of fixed number of levels, it is advantageous to taper the step size so that the steps are close together at low signal amplitudes and further apart at large amplitudes To correct this situation within the constraint of fixed number of levels, it is advantageous to taper the step size so that the steps are close together at low signal amplitudes and further apart at large amplitudes This leads to the SNR improvement for small signals, but the strong signals will be impaired. This leads to the SNR improvement for small signals, but the strong signals will be impaired. However the Inst. speech signal amplitude < ¼ rms signal value, for more than 50% of the time. However the Inst. speech signal amplitude < ¼ rms signal value, for more than 50% of the time.

26 COMPANDER (2) While it is possible to build a quantizer with tapered steps, it is more feasible/practical to achieve an equivalent effect by distorting the signal before quantizing. While it is possible to build a quantizer with tapered steps, it is more feasible/practical to achieve an equivalent effect by distorting the signal before quantizing. An inverse distortion is introduced at the receiving end so that the overall transmission is distortionless. An inverse distortion is introduced at the receiving end so that the overall transmission is distortionless.

27 COMPANDER (3)

28 COMPANDER (4) At low amplitudes the slope is larger than at high amplitudes. At low amplitudes the slope is larger than at high amplitudes. Consequently a given signal change at low amplitude will carry the quantizer through more steps than will be the case at large amplitudes. Consequently a given signal change at low amplitude will carry the quantizer through more steps than will be the case at large amplitudes. This network is called a COMPRESSOR. The inverse operation is performed by a EXPANDER. The combination is called a COMPANDER. This network is called a COMPRESSOR. The inverse operation is performed by a EXPANDER. The combination is called a COMPANDER.

29 REFERENCES Discrete Time Signal Processing. Discrete Time Signal Processing. Oppenheim and Schaffer,Prentice Hall. Digital and Analog Communication Systems. Digital and Analog Communication Systems. K. Shanmugam, John Wiley. Principles of Communication Systems. Principles of Communication Systems. Taub and Shilling, McGraw-Hill. Web Sources: