Plexus.Belief (Plexus v0.1.0)

Copy Markdown View Source

Typed local belief projection for TypeSafe noul, choice and score answers.

Raw provider values are retained. Calibration, when supplied, is an explicit transform and never rewrites the raw value.

Summary

Types

t()

@type t() :: %Plexus.Belief{
  calibrated: term() | nil,
  distribution: map() | nil,
  kind: :bernoulli | :categorical | :ordinal,
  metadata: map(),
  raw: term(),
  upper: number() | nil,
  value: term()
}

Functions

combine(left, right, opts \\ [])

@spec combine(t(), t(), keyword()) :: t()

entropy(belief)

@spec entropy(t()) :: float()

from(response, answer_id, opts \\ [])

@spec from(term(), term(), keyword()) :: t()

from_answer(answer, opts \\ [])

@spec from_answer(term(), keyword()) :: t()

probability(arg1)

@spec probability(t()) :: number() | nil