Skip to main content

expected_score

Function expected_score 

Source
pub fn expected_score(probabilities: &[f32]) -> f32
Expand description

The probability-weighted score value Σᵢ i·pᵢ ∈ [0, n−1]. A derived convenience — the trust contract remains the distribution itself.