function parameter
function parameter
function parameter
boolean indicating if the function should return the inverse of the upper tail of the incomplete beta function (default: false)
function value
var y = betaincinv( 0.2, 3.0, 3.0 );
// returns ~0.327
var y = betaincinv( 0.4, 3.0, 3.0 );
// returns ~0.446
var y = betaincinv( 0.4, 3.0, 3.0, true );
// returns ~0.554
var y = betaincinv( 0.4, 1.0, 6.0 );
// returns ~0.082
var y = betaincinv( 0.8, 1.0, 6.0 );
// returns ~0.235
Computes the inverse of the lower incomplete beta function.
Notes
p
and the second and third arguments area
andb
, respectively.upper
argument totrue
.NaN
as any argument, the function returnsNaN
.p < 0
orp > 1
, the function returnsNaN
.a <= 0
orb <= 0
, the function returnsNaN
.