Skip to content

felipeary91/Uniform-Quantizer-using-DISLIN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Uniform Quantizer using DISLIN

Quantization is a discretization process in which the continuous range of all possible values of a signal are replaced by a discrete range of values. In other words, a quantizer function $Q:R→Γ$, assigns a value $Q(a)∈Γ$ to each signal value. A formal definition of a quantizer is :

$$Q(n) = sign(a) * \Delta * \lfloor \frac{|a|}{\Delta} + \frac{1}{2} \rfloor$$

From the equation above, it can be inferred that most of the times quantization simply means to round off or truncate an analog value. This implementation corresponds to a uniform quantizer, which has a quantization step size $(Δ)$ that spaces the quantization levels equally.

In this implementation, a sine signal is simulated and then quantized using the equation above. The quantization error, difference between $m(t) - m_q(t)$, is computed as well. Dislin (https://www.dislin.de/) is used to plot the result of the quantization process, thus it is necessary to install it in order to run the code.

About

Quantizer of a sine function that uses Dislin for plotting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages