Skip to content

Commit 63d856b

Browse files
authored
Added TDist function (#1509)
* Added TDist function * Fixed misstake * Fixed failing check * Small fix
1 parent d386844 commit 63d856b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

src/EPPlus/FormulaParsing/Excel/Functions/BuiltInFunctions.cs

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public BuiltInFunctions()
262262
Functions["expon.dist"] = new ExponDotDist();
263263
Functions["steyx"] = new Steyx();
264264
Functions["t.dist"] = new TDist();
265+
Functions["tdist"] = new TDotDist();
265266
Functions["t.dist.2t"] = new TDist2t();
266267
Functions["t.inv"] = new TInv();
267268
Functions["t.dist.rt"] = new TDistRt();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*************************************************************************************************
2+
Required Notice: Copyright (C) EPPlus Software AB.
3+
This software is licensed under PolyForm Noncommercial License 1.0.0
4+
and may only be used for noncommercial purposes
5+
https://polyformproject.org/licenses/noncommercial/1.0.0/
6+
7+
A commercial license to use this software can be purchased at https://epplussoftware.com
8+
*************************************************************************************************
9+
Date Author Change
10+
*************************************************************************************************
11+
01/07/2024 EPPlus Software AB EPPlus v7
12+
*************************************************************************************************/
13+
14+
using OfficeOpenXml.FormulaParsing.Excel.Functions.Helpers;
15+
using OfficeOpenXml.FormulaParsing.Excel.Functions.Metadata;
16+
using OfficeOpenXml.FormulaParsing.FormulaExpressions;
17+
using OfficeOpenXml.FormulaParsing.Utilities;
18+
using System;
19+
using System.Collections.Generic;
20+
using System.Linq;
21+
using System.Text;
22+
23+
namespace OfficeOpenXml.FormulaParsing.Excel.Functions.Statistical
24+
{
25+
[FunctionMetadata(
26+
Category = ExcelFunctionCategory.Statistical,
27+
EPPlusVersion = "7.2.1",
28+
Description = "Returns the left-tailed Students t-distribution. The Students t-distribution is used for hypothesis testing with small samples.")]
29+
30+
internal class TDotDist:TDist
31+
{
32+
}
33+
}

0 commit comments

Comments
 (0)