Quantizes a continuous input signal to discrete states.
Input signal.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Height of the quantization levels.
This input accepts a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Default: 1
Type of the quantizer.
This input accepts a ring or an array of rings.
Name | Value | Description |
---|---|---|
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. |
Algorithm Definition for the Mid-Tread Quantizer
The mid-tread quantizer uses the following equation to quantize the input signal.
where
Algorithm Definition for the Mid-Riser Quantizer
The mid-riser quantizer uses the following equation to quantize the input signal.
where
Default: Mid-tread
Output signal.
This output can return a double-precision, floating-point number or an array of double-precision, floating-point numbers.
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application