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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"value": "<value>",
"bits": "<bits>",
"v_min": "<v_min>",
"v_max": "<v_max>"
},
"name": "uniform_quantization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | Yes | ||
| v_max | Yes | ||
| v_min | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |