Engee documentation

Quantizer

Samples the input signal at a predetermined interval.

blockType: Quantizer

Path in the library:

/Basic/Discontinuities/Quantizer

Description

Block Quantizer samples the input signal using a quantization algorithm. The block uses the method of rounding to the nearest to match the signal values with the quantized values at the output, which are determined by the Quantization interval parameter. The smooth input signal can take the form of a step after quantization.

The following equation describes the method of rounding to the nearest:

Where — Quantized output signal, — input signal, and Quantization interval.

Ports

Input

Port_1 — input signal for quantization
scalar | vector | matrix

The input signal for the quantization algorithm.

Data types: Float64, Int64.

Output

Port_1 — quantized output signal
scalar | vector | matrix

An output signal consisting of discrete values quantized with rounding to the nearest:

y = q * round(u/q)

where y is the quantized output signal, u is the input signal, and q is the Quantization interval.

Data types: Float64

Parameters

Quantization interval — the interval that determines the quantization levels for the output signal
0.5 (By default) | scalar | vector | matrix

Specifies the quantization interval used in the algorithm. Quantization levels for block output Quantizer are integers that are multiples of the Quantization interval.

Usage in program code

Block parameter

QuantizationInterval

Values

Any real or complex value

By default

0.5