TypeSafe.NoulAnswer (typesafe_ex v0.1.0)

Copy Markdown View Source

The answer to a TypeSafe.Noul: noul is the probability of yes, from 0 to 1.

A value near 0.5 means yes and no are about equally likely, not "somewhat yes". Noul answers carry no separate confidence.

Summary

Functions

Whether the probability of yes is above threshold (default 0.5).

Types

t()

@type t() :: %TypeSafe.NoulAnswer{noul: float()}

Functions

yes?(noul_answer, threshold \\ 0.5)

@spec yes?(t(), float()) :: boolean()

Whether the probability of yes is above threshold (default 0.5).