BINOMDIST
Returns the individual term binomial distribution probability.
Syntax
expression.BINOMDIST(arg1, arg2, arg3, arg4);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The number of successes in trials. | |
arg2 | Required | ApiRange | ApiName | number | The number of independent trials. | |
arg3 | Required | ApiRange | ApiName | number | The probability of success on each trial. | |
arg4 | Required | ApiRange | ApiName | boolean | Specifies if this is the cumulative distribution function (-true) or the probability mass function (-false). |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.BINOMDIST(50, 67, 0.45, false));