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