ScoreResult interface

The expected numeric score and per-bucket probabilities for a ScoreQuestion.

Signature:

export declare interface ScoreResult 

Properties

Property Type Description
distribution Record<number, number> Probability distribution over each integer bucket in [scaleMin, scaleMax].
expectedScore number Probability-weighted expected value ((\sum k \cdot P(k))) across the integer scale, providing a smooth continuous score.
mostLikelyScore number The integer bucket with the highest individual probability ((\arg\max_k P(k))).
score number Alias for expectedScore, representing the continuous probability-weighted score.

ScoreResult.distribution

Probability distribution over each integer bucket in [scaleMin, scaleMax].

Signature:

distribution: Record<number, number>;

ScoreResult.expectedScore

Probability-weighted expected value ((\sum k \cdot P(k))) across the integer scale, providing a smooth continuous score.

Signature:

expectedScore: number;

ScoreResult.mostLikelyScore

The integer bucket with the highest individual probability ((\arg\max_k P(k))).

Signature:

mostLikelyScore: number;

ScoreResult.score

Alias for expectedScore, representing the continuous probability-weighted score.

Signature:

score: number;