CHISQ_DIST
返回卡方分布的左尾概率。
语法
expression.CHISQ_DIST(arg1, arg2, arg3);
expression - 表示 ApiWorksheetFunction 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| arg1 | 必需 | ApiRange | ApiName | number | 用于计算分布的值,一个非负数。 | |
| arg2 | 必需 | ApiRange | ApiName | number | 自由度数,一个介于 1 和 10^10 之间的数字,不包括 10^10。 | |
| arg3 | 必需 | ApiRange | ApiName | boolean | 决定函数形式的逻辑值。如果此参数等于 true,则返回累积分布函数;如果等于 false,则返回概率密度函数。 |
返回值
number
示例
此示例演示如何返回卡方分布的左尾概率。
// How to return the left-tailed probability of the chi-squared distribution.
// Use function to return the left-tailed probability of the chi-squared distribution.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.CHISQ_DIST(2, 3, false));