NoulAnswer

com.softinio.verdict4s.algebra.NoulAnswer
See theNoulAnswer companion object
final case class NoulAnswer(value: Probability)

A Noul answer: how likely the answer is yes.

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 isTrue(threshold: Double = ...): Boolean

Whether to treat this as a yes.

Whether to treat this as a yes.

The threshold is yours to pick: the value is a calibrated probability, not a verdict, so where you cut depends on the cost of each mistake.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product