NORM_S_DIST
返回标准正态分布(平均值为零,标准偏差为一)。
语法
expression.NORM_S_DIST(arg1, arg2);
expression - 表示 ApiWorksheetFunction 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| arg1 | 必需 | ApiRange | ApiName | number | 将返回分布的值。 | |
| arg2 | 必需 | ApiRange | ApiName | boolean | 决定函数形式的逻辑值(true 或 false)。如果为 true,则函数返回累积分布函数。如果为 false,则函数返回概率质量函数。 |
返回值
number
示例
此示例演示如何返回标准正态分布(平均值为零,标准差为一)。
// How to calculate the standard normal distribution.
// Use a function to get the standard normal distribution with a mean = 0 and standard deviation = 1.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.NORM_S_DIST(1.33, true));