跳到主要内容

T_DIST

返回学生 t 分布的左尾。

语法

expression.T_DIST(arg1, arg2, arg3);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number用于计算分布的数值。
arg2必需ApiRange | ApiName | number表示分布特征自由度数的整数。
arg3必需ApiRange | ApiName | boolean决定函数形式的逻辑值(truefalse)。如果为 true,则函数返回累积分布函数。如果为 false,则函数返回概率密度函数。

返回值

number

示例

此示例演示如何返回左尾学生 t 分布。

// How to calculate the left-tailed Student's t-distribution.

// Use a function to estimate the Student's t-distribution left-tailed.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.T_DIST(1.5, 10, false);
worksheet.GetRange("B2").SetValue(ans);