function parameter
function parameter
function parameter
boolean indicating if the function should evaluate the regularized or non-regularized incomplete beta function (default: true)
boolean indicating if the function should return the upper tail of the incomplete beta function (default: false)
function value
var y = betainc( 0.5, 2.0, 2.0 );
// returns 0.5
var y = betainc( 0.5, 2.0, 2.0, false );
// returns ~0.083
var y = betainc( 0.2, 1.0, 2.0 );
// returns 0.36
Evaluates the incomplete beta function.
Notes
regularized
andupper
parameters specify whether to evaluate the non-regularized and/or upper incomplete beta functions, respectively.x < 0
orx > 1
, the function returnsNaN
.a < 0
orb < 0
, the function returnsNaN
.