monad-bayes-1.3.0.1: A library for probabilistic programming.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.Bayes.Inference.Lazy.WIS

Synopsis

Documentation

lwis :: Int -> WeightedT (SamplerT IO) a -> IO [a] Source #

Weighted Importance Sampling

Likelihood weighted importance sampling first draws n weighted samples, and then samples a stream of results from that regarded as an empirical distribution