ScoreAnswer
data class ScoreAnswer @JvmOverloads constructor(val score: Double, val probabilities: Map<Int, Double>, val confidence: Double? = null) : Answer
The answer to a Score question.
Types
Link copied to clipboard
class Builder
Fluent builder for ScoreAnswer, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.
Properties
Link copied to clipboard
The provider's confidence in [0, 1], or null when unreported.
Link copied to clipboard
Maps each 0-based rubric level to its probability in [0, 1].
Link copied to clipboard
The expected rubric level, weighted by probabilities.
Functions
Link copied to clipboard
Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.