IMSL C# Numerical Library

Cdf.DiscreteUniform Method 

Evaluates the discrete uniform cumulative probability distribution function.

public static double DiscreteUniform(
   int x,
   int n
);

Parameters

x
An int scalar value representing the argument at which the function is to be evaluated. x should be a value between the lower limit 0 and upper limit n
n
An int scalar value representing the upper limit of the discrete uniform distribution.

Return Value

A double scalar value representing the probability that a discrete uniform random variable takes a value less than or equal to x.

See Also

Cdf Class | Imsl.Stat Namespace