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

arg1numberdefault: null

The value between A and B at which to evaluate the function.

arg2numberdefault: null

The alpha parameter of the distribution which must be greater than 0.

arg3numberdefault: null

The beta parameter of the distribution which must be greater than 0.

arg4booleandefault: null

Specifies if this is the cumulative distribution function (true) or the probability density function (false).

arg5numberdefault: null

An optional lower bound to the interval of x (A). If omitted, it is equal to 0.

arg6numberdefault: 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);

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).