Questions tagged [quantization]

Quantization, in mathematics and digital signal processing, is the process of mapping input values from a large set (often a continuous set) to output values in a (countable) smaller set, often with a finite number of elements. Rounding and truncation are typical examples of quantization processes.

Filter by
Sorted by
Tagged with
8 votes
3 answers
1k views

Quantization SNR of sine wave doesn't match 1.761 + 6.02 * Q

I am trying to show with numpy that the quantization noise of a sine wave matches the SNR formula of SNR = 1.761 + 6.02 * Q. The numpy code is simple: ...
Tom Verbeure's user avatar
8 votes
1 answer
383 views

Optimal amplitude of an $m$-bit sinusoid

A continuous-time sinusoid of zero-to-peak real amplitude $A \le 2^{m-1}-0.5$ (e.g., for $m=16$, $A \le 32767.5$) is quantized to $m$-bit resolution by rounding it to the nearest integer (Fig. 1). ...
Olli Niemitalo's user avatar
7 votes
1 answer
14k views

Compute SQNR (Signal to Quantization Noise Ratio)

I'm studying the quantization of an audio signal and in particular the SQNR (Signal to Quantization Noise Ratio). The book on which the study says that: where: N is the number of bits in the ...
sleepwalking's user avatar
6 votes
3 answers
582 views

Why are we always interested in mean-squared distortion?

When dealing with quantizers, and in many other communications problems, the interest is usually on the mean-squared distortion or mean-squared error, rather than mean absolute error or anything else. ...
gtak's user avatar
  • 83
5 votes
3 answers
1k views

Precise 5th and 7th harmonics of a sampled sine wave

Does anyone know in decibels (to 1/100th of a dB) what the theoretical 3rd, 5th and 7th harmonic of a 0dB fs 24-bit (i.e. full-level; 0dB = -8,388,607 to 8,388,607) sampled sine wave without dither ...
Richard's user avatar
  • 101
5 votes
1 answer
241 views

Does delta-sigma ADC also reduce Gaussian noise on input signal to ADC or just quantization noise?

The motive for posing this questions arises from a difference of analysis between a colleague an myself. Our general environment is in the construction of an analog front-end which takes in signals ...
DSP_user's user avatar
5 votes
1 answer
499 views

What is "hard quantization" strategy?

I am working on classification and several times I encountered with this term. What is hard quantization strategy? What does it differ from soft approach?
David's user avatar
  • 711
5 votes
1 answer
152 views

Expected value of a quantized noisy signal

I am given a noisy signal $y(t) = x(t) + w(t)$, where $x(t)$ is my desired signal and $w(t)$ is the noise. In my scenario, the noise is very strong, much stronger than the desired signal $x(t)$. ...
Florian's user avatar
  • 2,413
4 votes
4 answers
2k views

From a physics perspective, why does D/A quantization error result in a noise floor?

For the last week or so I have been trying to understand how quantization error results in the noise floor outside of a mathematical perspective and I haven't really had any luck finding a source that ...
user3841's user avatar
4 votes
3 answers
223 views

Difference between ADC dynamic range and voltage resolution?

Say I have a 10-bit SAR ADC with a $5 \ \text{V}$ reference. I calculate its resolution to be $$\Delta V_\text{lsb} = \frac{5 \ \text{V}}{2^{10}} = 4.88 \ \text{mV} \approx 5 \ \text{mV}. $$ So for a $...
Carl's user avatar
  • 324
4 votes
1 answer
42k views

What is "Maximum Quantization Error"?

I have an formula for this "Maximum Quantization Error" but i dont know what it is based in. Its just thrown in my study material without further explanation. It is defined as: $$Q = \dfrac {\Delta ...
Diedre's user avatar
  • 155
4 votes
3 answers
1k views

Practical IIR filter implementation

I'm trying to implement a digital IIR filter on an FPGA and would be happy for some inputs regarding the actual digital implementation. I don't have a lot of experience with FPGAs and digital filters ...
FaradayParadox's user avatar
4 votes
2 answers
445 views

What distribution is the easiest to compress?

I'm currently playing around with some compression algorithms and I'm asking myself if there is a type of data distribution / noise distribution that is easier to target with quantization (meaning ...
Jane Dough's user avatar
3 votes
4 answers
445 views

Is it theoretically possible to perfectly quantize a continuous signal?

So, I'm completely new to digital signal processing, but while reading a piece this morning about quantization it got me daydreaming: could a machine ever be fast enough to sample the position and ...
armadadrive's user avatar
3 votes
2 answers
273 views

Oversampling in quantization

Q: It is said that "to maintain the same quality in the two cases, we require that the power spectral densities remain the same". Why is this a measure of the same quality? Why is not the ...
DSPinfinity's user avatar
3 votes
2 answers
4k views

A query on the non-uniform quantization

I have read that non-uniform quantization boosts the smaller amplitude signals by a large amount. However the larger amplitude signals receive a small gain. As shown in the below diagram (Compressor ...
METALHEAD's user avatar
  • 335
3 votes
2 answers
3k views

Audio signal dither and noise shaping

I'm trying to get a handle on the importance of the error feedback term in noise shaping operation in typical audio dither algorithms. I'm thinking in terms of four signals. The original signal, the ...
sh1's user avatar
  • 153
3 votes
1 answer
2k views

Sampling Rate Effect on Quantizer SNR

I am currently reading the 'Coding' chapter on Rabiner & Schafer's Book on speech processing. In one of its exercises, the reader is given a simple A/D converter using 16-bit uniform ...
VHarisop's user avatar
  • 163
3 votes
1 answer
146 views

Sample & Hold: Estimate jitter delay of an ADC

I've got a question regarding the effects of sample and hold. My input signal is $x$, and my output signal $x_{SH}$. The error between the signals is $e_{SH} = x_{SH}-x$. The sampling frequency is ...
Phobos's user avatar
  • 425
3 votes
2 answers
202 views

Why are vector quantizers not used in video codecs?

Using a vector quantizer (VQ), groups of image samples (or motion compensated and/or transformed data) can be quantized as vectors. I'm curious about why VQs are not preferred in the modern, highly ...
chronosynclastic's user avatar
3 votes
2 answers
286 views

In image compression using transforms, how to deal with the transformed coefficients as they are not integers?

I am new to the field of image compression. While going through various texts, I read about how transforming the image to another domain using, for example, the wavelet transform, or the DCT, makes it ...
ameyask's user avatar
  • 131
3 votes
1 answer
371 views

How much will a low/high pass filter reintroduce quantization noise into a dithered signal?

For example, most audio signals are dithered prior to distribution. However, if a low or high pass filter is introduced after dithering or during playback, won't that negate some of the benefits of ...
goweon's user avatar
  • 131
3 votes
1 answer
184 views

Design a quantization scheme around a desired quantization noise distribution

I have a - perhaps naive - question regarding the quantization noise/error. Assuming the goal is not the performance of the quantizer but rather being able to model the quantization noise exactly - ...
Bahar Az's user avatar
2 votes
3 answers
649 views

Signal to Quantization Noise ratio concept

I was reading Simon S. Haykin's Digital Communications in order to understand the concept of quantization. However, on SQNR, I got stuck over the point where the author mentioned: With the input $M$ ...
Pooja Agarwal's user avatar
2 votes
3 answers
1k views

confusion sampling vs quantization?

while converting analog signal to digital equivalent,we have a process that is called analog to digital conversion and it has two main steps/stages sampling and quantization? I am confused whether y ...
DSP_CS's user avatar
  • 1,850
2 votes
2 answers
123 views

Fixed Point Design Resources

Can anyone point me to good methodologies for designing fixed point versions of possibly nonlinear signal processing algorithms? Are there any systematic methods other than simulation for optimizing ...
rhz's user avatar
  • 375
2 votes
3 answers
2k views

ensure stability against coefficient quantization

for a filter: $$ H(z)=\frac{1+0.1z^{-1}}{1+0.1z^{-1}+0.9998z^{-2}} $$ Which precautions could be taken to ensure that the filter does not become unstable because of coefficient quantization? I've ...
Wobbler28's user avatar
2 votes
3 answers
503 views

How to Reverse Color Quantization?

Are there any algorithms that attempt to perform the inverse of color quantization on an image? In other words, is there a smart way to increase the bit depth of image? The obvious answer would be to ...
guissoares's user avatar
2 votes
1 answer
115 views

Mean square error for a quantizer - problem in integral

There are similar questions about related problems that I honestly didn't understand. I believe this might be a lack of statistics knowledge of my part. Quantization error standard deviation Error ...
chilliefiber's user avatar
2 votes
1 answer
1k views

Quantization error of SAR-ADCs

My question is related to the quantization error and the functionality of SAR-ADCs. In general, the quantization error of an ADC is defined as +-0.5LSB. If this concept is correct a voltage that ...
Punchi's user avatar
  • 85
2 votes
1 answer
54 views

Quantization and Sampling - putting it all together

So after I learned this two topic: quantization and sampling, I'm learning the way to look at both of them and try to optimize the split of a given amount of bit B to N and k, where N is the amount of ...
Ilya.K.'s user avatar
  • 177
2 votes
2 answers
195 views

Having converted a grayscale image to binary using `im2bw()`, is the converse operation possible?

I have converted a gray-scale image to binary using im2bw() now i wanna do the opposite. How can I do that in MATLAB?
Lisa's user avatar
  • 45
2 votes
1 answer
159 views

Why harmonic components appear only after a certain level when a signal is clipped?

I recently observed this phenomenon that when a signal is clipped the harmonics start to appear only after a certain level. The Python code to reproduce the effect is given below. The signal has 3 ...
Sajil C K's user avatar
  • 149
2 votes
2 answers
3k views

What is the difference between clustering and quantization?

The Lloyd-Max quantizer is a scalar quantizer which can be seen as a special case of a vector quantizer (VQ) designed with the Linde Buzo Gray (LBG) algorithm. In k-means clustering, we are given a ...
Ria George's user avatar
2 votes
1 answer
2k views

Lloyd Max Quantization and Clustering : Part 1

The Lloyd-Max quantizer is a scalar quantizer which can be seen as a special case of a vector quantizer (VQ) designed with the Linde Buzo Gray (LBG) algorithm. In k-means clustering, we are given a ...
Ria George's user avatar
2 votes
2 answers
441 views

DCT: Alternatives to quantization

When using the discrete cosine transform are there commonly used alternatives to quantization to decide which dct components to keep/are important? If not, how do people come up with quantization ...
foo's user avatar
  • 123
2 votes
1 answer
102 views

Quantizing a filtered signal

In the process of trying to learn dialup, I've managed to learn/figure out everything except how to convert a demodulated/filtered signal back into the original data. Here I have a random two-bit ...
Drew McGowen's user avatar
2 votes
1 answer
352 views

Variance of a signal

How to calculate the variance of noise samples modeled as follows: $n_a(t)$ is a Gaussian zero-mean white noise process with (two-sided) power spectral density $\frac{N_0}{2}$. $n_a(t)$ is passed ...
Raksha's user avatar
  • 23
2 votes
1 answer
2k views

Signal to Quantization Noise Ratio (SQNR)

I have this problem in my homework (following picture). How do find the signal to quantization noise ratio at the output? I don't want the solution. I just want to know a better approach to tackle ...
Copernicus's user avatar
2 votes
1 answer
16k views

Analog to digital conversion using Python

I'm a beginner. I try emulate analog signal conversion to digital (including sampling by time and quantizing by level) using Python. Here is my code: ...
Gluttton's user avatar
  • 388
2 votes
1 answer
1k views

Uniform quantizer for gaussian input signal

I have a gaussian signal $x$ with zero mean and unit variance. I am quantizing it by using a uniform quantizer of step size $q$ calculated by $$q = \frac{x_\mathrm{max} - x_\mathrm{min}}{2^{M_\mathrm{...
zsha's user avatar
  • 133
2 votes
1 answer
131 views

Is there any difference in Implementing sigma delta modulator using filters and state space model in FPGA?

Sigma delta modulation is extensively used in quantization to reduce quantization noise. In the literature one can see different architecture for example python-deltasigma to implement a modulator. ...
Creator's user avatar
  • 131
2 votes
1 answer
452 views

Differential Pulse Code Modulation (DPCM)

In the following figure we see an encoder and a decoder of a Delta Modulation System, which is a simple DPCM System with a 1-bit quantizer: We assume that signal $x(n)$ is known, that $\hat{x}(-1)=0$ ...
MJ13's user avatar
  • 285
2 votes
2 answers
367 views

JPEG compression steps after quantization

I have a 3-channel (for colours) a png image that I opened and I splitted the image into 8x8 blocks I applied all of the blocks discrete cosine transform And then applied quantization I stored the ...
Thunfische's user avatar
2 votes
1 answer
519 views

What is the no overload region of a quantizer?

I was watching a video on quantization noise and the instructor kept referring to the "no overload" region of a quantizer? Could anyone please explain what that term means?
Schimay's user avatar
  • 159
2 votes
0 answers
95 views

Modelling of quantization noise with logarithmic steps

I have to modell the quantization noise of ADC. I only know that the maximum relative error is 1 dB. Since this is logarithmic, I find it hard to formulate an appropriate model for the quantization ...
M. R.'s user avatar
  • 21
2 votes
1 answer
591 views

Quantization step-size for a given signal based on its PDF

I am familiar with the principles of midtread and midrise quantizer. However, I have difficulties determining the step size where it hasn't been explicitly given. For example, the following ...
Niousha's user avatar
  • 467
1 vote
4 answers
329 views

Can we have an analogous sampling theorem for quantization?

Sampling theorem tells us how we can sample a continuous signal such that we can reconstruct it without any errors, or without losing information. Quantization, on the other hand always results in ...
Shashank V M's user avatar
1 vote
3 answers
682 views

Connection between SNR and the dynamic range of the human ear

For signal-to-noise ratio (SNR), SNR=6B dB is called the dynamic range of the quantizer. The dynamic range of the 16-bit quantizer is 6B = 6·16 = 96 dB. Note that the dynamic range of the human ear ...
DSPinfinity's user avatar
1 vote
1 answer
1k views

Why use a 1-bit ADC in a Sigma Delta Modulator?

When looking at the discrete model of a Sigma-Delta Modulator as shown below, we can see that the quantizer is modelled as a white-noise source $e[n]$. From this model, we can derive the noise shaping ...
MisterFilter's user avatar