hakaru-0.1.2: A probabilistic programming embedded DSL
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