pub fn quantize_threshold(value: f64) -> f32
Quantize an f64 threshold to f32, returning the f32 value.