BETA_DIST
function BETA_DIST(
arg1: number = null,
arg2: number = null,
arg3: number = null,
arg4: boolean = null,
arg5: number = null,
arg6: number = null,
): number
Description
Returns the beta probability distribution function.
Parameters
- arg1
number
null The value between A and B at which to evaluate the function.
- arg2
number
null The alpha parameter of the distribution which must be greater than 0.
- arg3
number
null The beta parameter of the distribution which must be greater than 0.
- arg4
boolean
null Specifies if this is the cumulative distribution function (true) or the probability density function (false).
- arg5
number
null An optional lower bound to the interval of x (A). If omitted, it is equal to 0.
- arg6
number
null An optional upper bound to the interval of x (B). If omitted, it is equal to 1.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.BETA_DIST(0.4, 4, 5, false);
oWorksheet.GetRange("B2").SetValue(ans);