跳到主要内容

LOGNORM_INV

返回 x 的对数正态累积分布函数的逆函数,其中 ln(x) 以指定参数呈正态分布。

语法

expression.LOGNORM_INV(arg1, arg2, arg3);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number与对数正态分布相关的概率,一个介于 0 和 1 之间(含 0 和 1)的数字。
arg2必需ApiRange | ApiName | numberln(x) 的平均值。
arg3必需ApiRange | ApiName | numberln(x) 的标准差,一个正数。

返回值

number

示例

查找电子表格中对数正态分布中给定累积概率的值。

// How do I determine the percentile value for a lognormal distribution in a spreadsheet?

// Look up the inverse of cumulative lognormal probability in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.LOGNORM_INV(0.3, 2, 0.2));