Quantizer

signal.quantizer

Rounds the input to the nearest multiple of the step q, computed as q floor(u / q + 1/2).

Ports

NameDomainDirection
usignalin
ysignalout

Parameters

NameUnitDefaultRangeDescription
q10.10 to ∞Step size

Equations

y = q * floor(u / q + 0.5)