BooleanResult interface

The calibrated probability and decision result for a BooleanQuestion.

Signature:

export declare interface BooleanResult 

Properties

Property Type Description
answer boolean Boolean decision (true if probability >= threshold, otherwise false).
confidence number Confidence in the chosen boolean answer (probability when answer is true, or 1 - probability when false).
probability number Probability in [0.0, 1.0] that the answer to the question is affirmative (true).

BooleanResult.answer

Boolean decision (true if probability >= threshold, otherwise false).

Signature:

answer: boolean;

BooleanResult.confidence

Confidence in the chosen boolean answer (probability when answer is true, or 1 - probability when false).

Signature:

confidence: number;

BooleanResult.probability

Probability in [0.0, 1.0] that the answer to the question is affirmative (true).

Signature:

probability: number;