hakaru-0.1.3: A probabilistic programming embedded DSL
Language.Hakaru.Sampler
type Sampler a = forall g. RandomGen g => g -> (Mixture a, g)Source
deterministic :: Mixture a -> Sampler aSource
sbind :: Sampler a -> (a -> Sampler b) -> Sampler bSource
smap :: (a -> b) -> Sampler a -> Sampler bSource