BinaryAnswer

data class BinaryAnswer @JvmOverloads constructor(val probability: Double, val confidence: Double? = null) : Answer

The answer to a Binary question.

Constructors

Link copied to clipboard
constructor(probability: Double, confidence: Double? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for BinaryAnswer, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The provider's confidence in [0, 1], or null when unreported.

Link copied to clipboard

The probability in [0, 1] that the statement is true.

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.