Evaluates the uniform cumulative probability distribution function.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Uniform(
	double x,
	double aa,
	double bb
)
Visual Basic (Declaration)
Public Shared Function Uniform ( _
	x As Double, _
	aa As Double, _
	bb As Double _
) As Double
Visual C++
public:
static double Uniform(
	double x, 
	double aa, 
	double bb
)

Parameters

x
Type: System..::.Double
A double scalar value representing the argument at which the function is to be evaluated.
aa
Type: System..::.Double
A double scalar value representing the location parameter.
bb
Type: System..::.Double
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 Cdf.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