aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/functions/TDist.java2
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/functions/TDistLt.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist.java
index 3d3b034e9f..87888e8547 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDist.java
@@ -53,7 +53,7 @@ public final class TDist extends Fixed3ArgFunction implements FreeRefFunction {
public static final TDist instance = new TDist();
static double tdistOneTail(double x, int degreesOfFreedom) {
- TDistribution tdist = new TDistribution(degreesOfFreedom);
+ TDistribution tdist = new TDistribution(null, degreesOfFreedom);
return 1.0 - tdist.cumulativeProbability(x);
}
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistLt.java b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistLt.java
index 4d8adcd99e..6cad57f864 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistLt.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/functions/TDistLt.java
@@ -51,12 +51,12 @@ public final class TDistLt extends Fixed3ArgFunction implements FreeRefFunction
public static final TDistLt instance = new TDistLt();
private static double tdistCumulative(double x, int degreesOfFreedom) {
- TDistribution tdist = new TDistribution(degreesOfFreedom);
+ TDistribution tdist = new TDistribution(null, degreesOfFreedom);
return tdist.cumulativeProbability(x);
}
private static double tdistDensity(double x, int degreesOfFreedom) {
- TDistribution tdist = new TDistribution(degreesOfFreedom);
+ TDistribution tdist = new TDistribution(null, degreesOfFreedom);
return tdist.density(x);
}