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