NoulAnswer

data class NoulAnswer(val noul: Double) : Answer(source)

The answer to a Noul: noul is the probability, from 0 to 1, that the answer is yes. Nouls have no confidence.

Constructors

Link copied to clipboard
constructor(noul: Double)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun band(no: Double = 0.3, yes: Double = 0.7): NoulBand

Splits the probability into no / uncertain / yes, e.g. to send the uncertain middle to a person. The defaults are the TypeSafe cookbook's illustrative band; tune them on your own data.

Link copied to clipboard
fun isTrue(threshold: Double = 0.5): Boolean

True when the probability of yes exceeds threshold.