pub fn score_confidence(probabilities: &[f32]) -> f32Expand description
Score confidence: max(0, 1 − MAD_mode / MAD_uniform) where
MAD_mode = Σᵢ pᵢ·|i − argmax| and MAD_uniform = (Σᵢ |i − (n−1)/2|) / n — the
distribution’s mean absolute distance from its mode, normalized by the uniform
distribution’s mean absolute distance from the center. A single-level distribution is
certain by construction (1.0).