跳到主要内容

GAUSS

计算标准正态总体成员落在平均值和距平均值 arg1 个标准偏差之间的概率。

语法

expression.GAUSS(arg1);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number将计算分布的值。

返回值

number

示例

查找电子表格中标准正态分布的概率。

// How do I calculate the area under the normal distribution curve in a spreadsheet?

// Get the cumulative normal probability for a given standard deviation value in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.GAUSS(2);
worksheet.GetRange("B2").SetValue(ans);