Dagger.Lmh_inferenceSourceLightweight Metropolis-Hastings
include Intf.Sinclude Intf.Core'a t is the type of computations of type 'a
If-then-else, mostly useful for monads featuring incremental computation. Allows to efficiently bind on a boolean computation.
sample dist builds a computation that samples from dist. Note that dist must be a pure computation.
samplei dist is similar to sample except that dist can be an impure computation (ie computing the distribution can involve sampling from other distributions).
map_score m f behaves similarly to m except that the associated computation will be reweighted according to the result of evaluating f on the value of m.
Same as map_score excepts that a log-space likelihood is expected.
log_score behaves as score except that a log-space weight is expected.