Module Ppl__.Primitive
type 'a support=|DiscreteFinite of 'a listA list of valid values
|DiscreteInfinitediscrete dist with infinite support e.g. poisson
|ContinuousFinite of ('a * 'a) listset of endpoints
|ContinuousInfinitecontinuous dist with an infinite support e.g.
|Merged of 'a support * 'a supportcombination of any of the above
The type of supports - the values with a distribution can take
module type PRIM_DIST = sig ... endThe signature for new primitive distributions
New Distributions
Predefined Distributions
val binomial : int -> float -> int tval categorical : ('a * float) list -> 'a tval normal : float -> float -> float tval discrete_uniform : 'a list -> 'a tval beta : float -> float -> float tval gamma : float -> float -> float tval poisson : float -> int tval continuous_uniform : float -> float -> float t