double uniformp(double x, double a, double b);
Returns the value of the Uniform random variable distribution function on the interval [a,b] at the value u.
Parameters:
x | Critical point. |
---|---|
a | Lower bound parameter. |
b | Upper bound parameter. |
Returns:
P(X ≤ x | a, b)
Errors:
NUMERICS_ERROR
is raised if a > b
Usage:
double p = uniformp(.5, 1.5, 2.75)
Header:
#include "contdist.h"