Quantizer
signal.quantizer
Rounds the input to the nearest multiple of the step q, computed as q floor(u / q + 1/2).
Ports
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
y | signal | out |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
q | 1 | 0.1 | 0 to ∞ | Step size |
Equations
y = q * floor(u / q + 0.5)