class LittleGhost::DecisionAnswer
One typed answer returned by a decision provider.
Attributes
Confidence value for Choice and Score answers.
Level descriptions for Score answers.
Option or level probabilities for Choice and Score answers.
Answer type: :choice, :noul, or :score.
Selected label, yes probability, or probability-weighted score.
Public Instance Methods
Source
# File lib/little_ghost/decision.rb, line 139
Returns the selected label for a Choice answer, or nil for another type.
Source
# File lib/little_ghost/decision.rb, line 143
Returns the yes probability from 0 to 1 for a Noul answer, or nil for another type.
Source
# File lib/little_ghost/decision.rb, line 147
Returns the probability-weighted value for a Score answer, or nil for another type.