Module type Distributions.Categorical.S

module type S = sig .. end

include Distributions.DiscreteDistribution
val create : (elt * float) array -> t
Creates a categorical distribution over values of type elt, where each value is given a probability, which defaults to 0 for values not in the list.
val mle : elt array -> t
Creates a categorical distribution with a MLE of parameters, estimated from given data.