Languages
[Edit]
EN

JavaScript - signal linear quantizer

10 points
Created by:
starcraf35
754

In this short article, we would like to show how to create simple signal linear quantizer using JavaScript.

Quantization formula:

Where:

  • Q(y) - output quantized value,
  • y - input quantized value
  • Δ - quantization step size

 

Quantization preview:

Parabola linear quantization in range <-9, +9> using JavaScript.
Parabola linear quantization in range <-9, +9> using JavaScript.

Practical example:

 

See also

Edit
  1. JavaScript - draw function chart on canvas element

  2. JavaScript - closest multiple to the indicated value

Refenreces

Edit
  1. Quantization (signal processing) - Wikipedia
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join