POISSON_DIST

function POISSON_DIST(arg1: number = null, arg2: number = null, arg3: boolean = null): number

Description

Returns the Poisson distribution.

Parameters

arg1numberdefault: null

The number of events.

arg2numberdefault: null

The expected numeric value, a positive number.

arg3booleandefault: null

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

Returns

number

Try It


const oWorksheet = Api.GetActiveSheet();

//method params
var x = 9;
var mean = 12;
var cumulative = false;

var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.POISSON_DIST(x, mean, cumulative);

oWorksheet.GetRange("C1").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).