HYPGEOM_DIST

function HYPGEOM_DIST(
  arg1: number = null,
  arg2: number = null,
  arg3: number = null,
  arg4: number = null,
  arg5: boolean = null,
): number

Description

Returns the hypergeometric distribution.

Parameters

arg1numberdefault: null

The number of successes in the sample.

arg2numberdefault: null

The size of the sample.

arg3numberdefault: null

The number of successes in the population.

arg4numberdefault: null

The population size.

arg5booleandefault: null

A logical value (true or false) that determines the function form. If it is true, the function returns the cumulative distribution function. If it is false, the function returns the probability mass function.

Returns

number

Try It

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.HYPGEOM_DIST(2, 3, 3, 12, true));

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).