You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2023/02/20 10:20:07 UTC
[commons-statistics] branch master updated: Correct test epsilon due to changes in Hypergeometric distribution
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git
The following commit(s) were added to refs/heads/master by this push:
new e161966 Correct test epsilon due to changes in Hypergeometric distribution
e161966 is described below
commit e161966d4e2c80dcb622d2d8bb4604d8fc1c99ab
Author: aherbert <ah...@apache.org>
AuthorDate: Mon Feb 20 10:19:54 2023 +0000
Correct test epsilon due to changes in Hypergeometric distribution
---
.../apache/commons/statistics/inference/FisherExactTestTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/FisherExactTestTest.java b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/FisherExactTestTest.java
index a20cbdf..4093710 100644
--- a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/FisherExactTestTest.java
+++ b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/FisherExactTestTest.java
@@ -92,11 +92,11 @@ class FisherExactTestTest {
"1, 0, 1, 2e-16",
"0, 1, 1, 2e-16",
"1, 1, 1, 2e-16",
- "8, 7, 13, 2e-16",
- "10, 12, 24, 2e-16",
+ "8, 7, 13, 1.1e-15",
+ "10, 12, 24, 7e-16",
"20, 25, 43, 3e-16",
// Create a contingency table where the hypergeometric mode is 1.5
- "4, 2, 8, 2e-16",
+ "4, 2, 8, 3e-16",
})
void testFisherExactTest(int n, int kk, int nn, double eps) {
final HypergeometricDistribution dist = HypergeometricDistribution.of(nn, kk, n);