pub fn compute_otsu_threshold(values: &[f64]) -> f64
Returns the threshold that maximizes inter-class variance.