ChoiceAnswer

com.softinio.verdict4s.algebra.ChoiceAnswer
See theChoiceAnswer companion object
final case class ChoiceAnswer[A](choice: A, probabilities: SortedMap[OptionName, Probability], confidence: Confidence)

A Choice answer, already mapped into the caller's own option type.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def probabilityFor(value: A)(using options: Options[A]): Option[Probability]

The probability assigned to one particular option.

The probability assigned to one particular option.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product