IMSL C# Numerical Library

Cdf.InverseDiscreteUniform Method 

Returns the inverse of the discrete uniform cumulative probability distribution function.

public static int InverseDiscreteUniform(
   double p,
   int n
);

Parameters

p
A double scalar value representing the probability for which the inverse discrete Uniform function is to be evaluated
n
An int scalar value representing the upper limit of the discrete uniform distribution

Return Value

An int scalar value. The probability that a discrete Uniform random variable takes a value less than or equal to this returned value is p.

See Also

Cdf Class | Imsl.Stat Namespace