uniform_quantization
Quantize a continuous value into uniform levels. Get the quantized output, quantization error, step size (Δ), and theoretical maximum SQNR from bit depth and signal range.
Instructions
Simulates uniform quantization of a continuous value. Returns the quantized value, quantization error, step size (Δ), and theoretical maximum SQNR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | Yes | ||
| v_max | Yes | ||
| v_min | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |