pub fn quantization_error_worst_case(range: f32, bits: u32) -> f32
Compute the worst-case quantization error for a given number of bits and range.