Measuring Error from Uniform Quantization
Uniform rounding to a nearest representable value can bound absolute rounding error by half a step for inputs within the usable grid range.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a half-unit step
With values available every 0.5, input 1.2 rounds to 1.0 and error is 0.2. The half-step bound is 0.25 away from clipping. See quantization.
Check storage limits
Beyond the representation's end, clamping can exceed that bound. Report domain and metric together. Approximation error provides the error scales.[1][2]
Compute signed and absolute errors per sample
With nearest levels spaced one half unit apart, input 0.1 maps to zero and 0.9 maps to one. Reconstructed-minus-original errors are minus 0.1 and plus 0.1. Their mean is zero although both samples changed. See absolute and squared errors.
Sample .1 → 0, error -.1
Sample .9 → 1, error +.1
Mean signed error 0
Mean absolute error .1
Decide which summary exposes your risk
Maximum absolute error measures the largest difference. Mean error can expose bias but cancels opposing errors. Keep original units and include values near clipping limits.