Score distributions, rounded expectations, modal levels and normalization.
Summary
Functions
Rounded expected level and its caller label; this is NOT necessarily the modal level.
Most probable level and label. Ties choose the lowest index.
Expected score / highest level index; a one-level legacy rubric yields 0.0.
Functions
@spec expected_level(TypeSafeSDK.ScoreAnswer.t()) :: {integer(), term()}
Rounded expected level and its caller label; this is NOT necessarily the modal level.
@spec max_level(TypeSafeSDK.ScoreAnswer.t()) :: {integer(), term()} | nil
Most probable level and label. Ties choose the lowest index.
@spec normalized(TypeSafeSDK.ScoreAnswer.t()) :: number()
Expected score / highest level index; a one-level legacy rubric yields 0.0.
@spec ranked(TypeSafeSDK.ScoreAnswer.t()) :: [{integer(), number()}]