IMSL C# Numerical Library

Cdf.Uniform Method 

Evaluates the uniform cumulative probability distribution function.

public static double Uniform(
   double x,
   double aa,
   double bb
);

Parameters

x
A double scalar value representing the argument at which the function is to be evaluated.
aa
A double scalar value representing the location parameter.
bb
A double scalar value representing the scale parameter.

Return Value

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

Remarks

Method Uniform evaluates the distribution function, F, of a uniform random variable with location parameter aa and scale parameter bb; that is,

f(x)=\left\{\begin{array}{cl}
                0 & \mbox{if}~  x \lt aa \\
                \frac{x-aa}{bb-aa} & \mbox{if}~  aa\le x\le bb \\
                1 &\mbox{if}~  x>bb
                \end{array}\right.

Plot of Uniform Distribution Function

See Also

Cdf Class | Imsl.Stat Namespace