Quantizer

Quantizes a continuous input signal to discrete states.

1378

Inputs/Outputs

datatype_icon

input

Input signal.

This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

datatype_icon

quantization interval

Height of the quantization levels.

This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.

Default value: 1

datatype_icon

type of quantization

Type of the quantizer.

This input accepts a ring or an array of rings.

Mid-tread 0 Uses a mid-tread type quantizer.
Mid-riser 1 Uses a mid-riser type quantizer.
Round towards +Inf 2 Rounds the input elements to the nearest integer towards +Inf.
Round towards -Inf 3 Rounds the input elements to the nearest integer towards -Inf.
Round towards zero 4 Rounds the input elements to the nearest integer towards zero.
Round away from zero 5 Rounds the input elements to the nearest integer away from zero.

Default value: Mid-tread

Algorithm Definition for the Mid-Tread Quantizer

The mid-tread quantizer uses the following equation to quantize the input signal.

where

  • y is the output signal
  • u is the input signal
  • is the quantization interval

Algorithm Definition for the Mid-Riser Quantizer

The mid-riser quantizer uses the following equation to quantize the input signal.

where

  • y is the output signal
  • u is the input signal
  • is the quantization interval
datatype_icon

output

Output signal.

This output can return a double-precision, floating-point number or an array of double-precision, floating-point numbers.