跳到主要内容

EXPONDIST

返回指数分布。

语法

expression.EXPONDIST(arg1, arg2, arg3);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | numberx 函数的值,一个非负数。
arg2必需ApiRange | ApiName | numberlambda 参数值,一个正数。
arg3必需ApiRange | ApiName | boolean决定函数形式的逻辑值。如果此参数为 true,函数将返回累积分布函数;如果为 false,则返回概率密度函数。

返回值

number

示例

此示例演示如何返回指数分布。

// How to get the exponential distribution.

// Use function to calculate an exponential distribution.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.F_DIST(10, 6, 4, false);
worksheet.GetRange("B2").SetValue(ans);