跳到主要内容

NORM_INV

返回指定平均值和标准偏差的正态累积分布的逆函数。

语法

expression.NORM_INV(arg1, arg2, arg3);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

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

返回值

number

示例

此示例演示如何返回指定平均值和标准差的正态累积分布的反函数。

// How to calculate the inverse of the normal cumulative distribution.

// Use a function to get the inverse of the normal cumulative distribution with a mean and standard deviation.

const worksheet = Api.GetActiveSheet();

worksheet.GetRange("A1").SetValue(0.6);

//method params
let value = worksheet.GetRange("A1").GetValue();

let func = Api.WorksheetFunction;
let ans = func.NORMSDIST(value);

worksheet.GetRange("C1").SetValue(ans);