Idris2Doc : Control.Monad.Bayes.Interface

Control.Monad.Bayes.Interface

(source)

Reexports

importpublic Data.List
importpublic Data.Vect
importpublic Statistics.Distribution
importpublic Numeric.Log

Definitions

interfaceMonadSample : (Type->Type) ->Type
Parameters: m
Constraints: Monad m
Methods:
random : mDouble
  Draws a random value from Uniform(0,1)
uniform : Double->Double->mDouble
  Uniform(min, max)
normal : Double->Double->mDouble
  Normal(mean, sd)
gamma : Double->Double->mDouble
  Gamma(shape, scale) -> m Double
beta : Double->Double->mDouble
  Beta(alpha, beta) -> m Double
bernoulli : Double->mBool
  Bernoulli(prob)
binomial : Nat->Double->mNat
  Binomial(num trials, prob of each trial)
categorical : VectnDouble->m (Finn)
  Categorical(probs)
logCategorical : Vectn (LogDouble) ->m (Finn)
  Log-categorical(log-probs)
uniformD : Vect (Sn) a->ma
  Uniform-Discrete(values)
dirichlet : VectnDouble->m (VectnDouble)
  Dirichlet(concentrations)
discreteUniform : Nat->mNat
  DiscUniform(range); should return Nat from 0 to (range - 1)
fromPMF : (Nat->Double) ->mNat
  Draw from a discrete distribution using the probability mass function and a sequence of draws from Bernoulli.
geometric : Double->mNat
  Geometric(prob)
hypergeometric : Nat->Nat->Nat->mNat
  Hypergeometric(num elements of "type 1", num elements of "type 2", num samples)
poisson : Double->mNat
  Poisson(λ)

Implementations:
MonadSamplem=>MonadSample (MaybeTm)
MonadSamplem=>MonadSample (ReaderTrm)
MonadSamplem=>MonadSample (WriterTwm)
MonadSamplem=>MonadSample (StateTsm)
MonadSamplem=>MonadSample (RWSTrwsm)
random : MonadSamplem=>mDouble
  Draws a random value from Uniform(0,1)

Totality: total
Visibility: public export
uniform : MonadSamplem=>Double->Double->mDouble
  Uniform(min, max)

Totality: total
Visibility: public export
normal : MonadSamplem=>Double->Double->mDouble
  Normal(mean, sd)

Totality: total
Visibility: public export
gamma : MonadSamplem=>Double->Double->mDouble
  Gamma(shape, scale) -> m Double

Totality: total
Visibility: public export
beta : MonadSamplem=>Double->Double->mDouble
  Beta(alpha, beta) -> m Double

Totality: total
Visibility: public export
bernoulli : MonadSamplem=>Double->mBool
  Bernoulli(prob)

Totality: total
Visibility: public export
binomial : MonadSamplem=>Nat->Double->mNat
  Binomial(num trials, prob of each trial)

Totality: total
Visibility: public export
categorical : MonadSamplem=>VectnDouble->m (Finn)
  Categorical(probs)

Totality: total
Visibility: public export
logCategorical : MonadSamplem=>Vectn (LogDouble) ->m (Finn)
  Log-categorical(log-probs)

Totality: total
Visibility: public export
uniformD : MonadSamplem=>Vect (Sn) a->ma
  Uniform-Discrete(values)

Totality: total
Visibility: public export
dirichlet : MonadSamplem=>VectnDouble->m (VectnDouble)
  Dirichlet(concentrations)

Totality: total
Visibility: public export
discreteUniform : MonadSamplem=>Nat->mNat
  DiscUniform(range); should return Nat from 0 to (range - 1)

Totality: total
Visibility: public export
fromPMF : MonadSamplem=> (Nat->Double) ->mNat
  Draw from a discrete distribution using the probability mass function and a sequence of draws from Bernoulli.

Totality: total
Visibility: public export
geometric : MonadSamplem=>Double->mNat
  Geometric(prob)

Totality: total
Visibility: public export
hypergeometric : MonadSamplem=>Nat->Nat->Nat->mNat
  Hypergeometric(num elements of "type 1", num elements of "type 2", num samples)

Totality: total
Visibility: public export
poisson : MonadSamplem=>Double->mNat
  Poisson(λ)

Totality: total
Visibility: public export
interfaceMonadCond : (Type->Type) ->Type
Parameters: m
Constraints: Monad m
Methods:
score : LogDouble->m ()
  Record a likelihood. Note: when calling `score (Exp p)`, p must already be in the log-domain.

Implementations:
MonadCondm=>MonadCond (MaybeTm)
MonadCondm=>MonadCond (ReaderTrm)
MonadCondm=>MonadCond (WriterTwm)
MonadCondm=>MonadCond (StateTsm)
MonadCondm=>MonadCond (RWSTrwsm)
score : MonadCondm=>LogDouble->m ()
  Record a likelihood. Note: when calling `score (Exp p)`, p must already be in the log-domain.

Totality: total
Visibility: public export
condition : MonadCondm=>Bool->m ()
Totality: total
Visibility: export
interfaceMonadInfer : (Type->Type) ->Type
Parameters: m
Constraints: MonadSample m, MonadCond m
Implementations:
MonadInferm=>MonadInfer (MaybeTm)
MonadInferm=>MonadInfer (ReaderTrm)
MonadInferm=>MonadInfer (WriterTwm)
MonadInferm=>MonadInfer (StateTsm)
MonadInferm=>MonadInfer (RWSTrwsm)