Idris2Doc : Control.Monad.Bayes.Free

Control.Monad.Bayes.Free

(source)

Reexports

importpublic Control.Monad.Trans.Free.Church

Definitions

dataSamF : Type->Type
  Random sampling functor

Totality: total
Visibility: public export
Constructor: 
Random : (Double->a) ->SamFa

Hints:
FunctorSamF
(Monadm, MonadFreeSamF (FreeSamplerm)) =>MonadSample (FreeSamplerm)
FreeSampler : (Type->Type) ->Type->Type
  Free monad transformer over random sampling.
Uses the Church-encoded version of the free monad for efficiency.

Visibility: public export
hoist : (Monadm, Monadn) => (mx->nx) ->FreeSamplerma->FreeSamplerna
  Hoist 'FreeSampler' through a monad transform.

Visibility: export
interpret : MonadSamplem=>FreeSamplerma->ma
  Execute random sampling in the transformed monad.

Visibility: export
withRandomness : Monadm=>ListDouble->FreeSamplerma->ma
  Execute computation with supplied values for random choices.

Visibility: export
withPartialRandomness : MonadSamplem=>ListDouble->FreeSamplerma->m (a, ListDouble)
  Execute computation with supplied values for a subset of random choices.
Return the output value and a record of all random choices used, whether
taken as input or drawn using the transformed monad.

Visibility: public export
runWith : MonadSamplem=>ListDouble->FreeSamplerIdentitya->m (a, ListDouble)
  Like `withPartialRandomness`, but use an arbitrary sampling monad.

Visibility: public export