Quantizer
Samples the input signal at a predetermined interval.
blockType: Quantizer
Path in the library:
|
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 parameter Quantization interval. 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
#
IN_1
—
input signal for quantization
scalar | vector | the matrix
Details
The input signal for the quantization algorithm.
| Data types |
|
| Complex numbers support |
I don’t |
Output
#
OUT_1
—
quantized output signal
scalar | vector | the matrix
Details
An output signal consisting of discrete values quantized with rounding to the nearest:
y = q * round(u/q)
Where y — Quantized output signal, u — input signal, and q — Quantization interval.
| Data types |
|
| Complex numbers support |
I don’t |
Parameters
Main
#
Quantization interval —
the interval that determines the quantization levels for the output signal
Scalar / array of real numbers
Details
Specifies the quantization interval used in the algorithm. Quantization levels for block output Quantizer are integers, multiples of Quantization interval.
| Default value |
|
| Program usage name |
|
| Tunable |
Yes |
| Evaluatable |
Yes |