跳到主要内容

T_DIST_2T

返回学生 t 分布的双尾。

语法

expression.T_DIST_2T(arg1, arg2);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number用于计算分布的数值。
arg2必需ApiRange | ApiName | number表示分布特征自由度数的整数。

返回值

number

示例

计算电子表格中学生 t 分布的双尾概率。

// How do I find the two-tailed probability for a given t-value in a spreadsheet?

// Get the probability for both tails of the t-distribution in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.T_DIST_2T(1.5, 10));