double expv(double x, double b);
Returns the critical point of the Exponential random variable distribution function with mean b associated with probability p.
Parameters:
p | Cummulative probability for the critical point. |
---|---|
b | Rate parameter. |
Returns:
x such that P(X ≤ x | b) = p
Errors:
NUMERICS_ERROR
is raised if b ≤ 0, p ≤ 0, or p ≥ 1
Usage:
double x = expv(.5, 1.5)
Header:
#include "contdist.h"