uniformp

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:
xCritical point.
aLower bound parameter.
bUpper 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"