Engee documentation

Quantizer

Discretises the input signal at the specified interval.

quantizer

Description

The Quantizer block discretises the input signal using a quantization algorithm. The block uses rounding to the nearest to compare the signal values with the quantised output values, which are defined by the Quantization interval parameter. A smooth input signal may take the form of a step after quantisation.

The following equation describes the rounding to nearest method:

y = q * round(u/q).

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

Ports

Input

Port_1 - input signal for quantisation
scalar | vector | matrix

Input signal for quantisation algorithm.

Data types: Float64, Int64.

Output

Port_1 - quantised output signal
scalar | vector | matrix

Output signal consisting of discrete values quantised rounded to the nearest value:

y = q * round(u/q)

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

Data types: Float64.

Parameters

Quantisation interval - interval defining quantization levels for the output signal
0.5 (by default) | scalar | vector | matrix

Specifies the quantisation interval used in the algorithm. Quantisation levels for output data of Quantizer block are integers multiple of Quantisation interval.

Usage in program code

Block parameter

QuantisationInterval

Values

Any real or complex value

*By default

0.5