TypeSafeSDK.Answer.Noul (TypeSafeSDK v0.2.0)

Copy Markdown View Source

Noul decision helpers. The threshold is application policy, not a safety guarantee.

Summary

Functions

Return max(p, 1-p), a derived certainty measure, not provider confidence.

Compare probability of true with a threshold (default 0.5).

Functions

confidence(noul_answer)

@spec confidence(TypeSafeSDK.NoulAnswer.t()) :: number()

Return max(p, 1-p), a derived certainty measure, not provider confidence.

yes?(answer, threshold \\ 0.5)

@spec yes?(TypeSafeSDK.NoulAnswer.t(), number()) :: boolean()

Compare probability of true with a threshold (default 0.5).