跳到主要内容

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

示例

此示例演示如何返回 x 的对数正态累积分布函数的反函数,其中 ln(x) 按指定参数呈正态分布。

// How to get the inverse of the lognormal cumulative distribution function of x.

// Use a function to return the inverse of the lognormal cumulative distribution function.

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