betaincinv
- :
x =betaincinv(y, a, b)¶ - :
x =betaincinv(y, a, b, tail)¶ Inverse of the regularized incomplete beta function.
For tail equal to
"lower"(default) return x in [0, 1] withbetainc (x, a, b) == y; for"upper"the value withbetainc (x, a, b, "upper") == y.y must lie in [0, 1] and a, b must be positive floating point values; the arguments must have the same size or be scalars. The equation is solved for
log (x)on the half of the interval,x <= 1/2, that contains the root (using the reflectionI_x(a,b) = 1 - I_(1-x)(b,a)otherwise), by a safeguarded Newton iteration on the logarithm of the smaller tail.