A typeclass allowing Distributions and RVars to be sampled. Both may also be sampled via runRVar or runRVarT, but I find it psychologically pleasing to be able to sample both using this function, as they are two separate abstractions for one base concept: a random variable.
Methods
sampleFrom :: StatefulGen g m => g -> d t -> m tDirectly sample from a distribution or random variable, using the given source of entropy.
Instances2Sampleable
Distribution d t => Sampleable d m tDefined in random-fu-0.3.0.1 · Data.Random.SampleLift m n => Sampleable (RVarT m) n tDefined in random-fu-0.3.0.1 · Data.Random.Sample