Module type Distributions.DiscreteDistribution

module type DiscreteDistribution = sig .. end

type elt 
type t 
val sample : ?rng:Gsl.Rng.t ->
size:int ->
t ->
elt array
Samples size data points from the distribution.
val cumulative_probability : t ->
n:elt -> float
Computes cumulative probability function for a given value n, i. e. P(X <= n), the probability that a random variable X will be found at a value less than or equal to n.
val probability : t ->
n:elt -> float
Computes probability mass function for a given value n, i. e. P(X = n), the probability that a random variable X is exactly equal to n