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 2021/12/15 18:19:28 UTC

[commons-statistics] 01/03: Removed redundant tolerance from beta distribution test files

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

commit 7ee7309fb91d3a1399026b91c6063b1cc6fdd439
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Dec 15 17:03:42 2021 +0000

    Removed redundant tolerance from beta distribution test files
    
    The tests pass using the global tolerance for the beta distribution.
    
    Accuracy of the RegularisedBeta function used for the CDF and SF may
    have been improved by changes to the gamma functions in [NUMBERS-174].
---
 .../org/apache/commons/statistics/distribution/test.beta.11.properties  | 2 --
 .../org/apache/commons/statistics/distribution/test.beta.16.properties  | 2 --
 .../org/apache/commons/statistics/distribution/test.beta.18.properties  | 2 --
 .../org/apache/commons/statistics/distribution/test.beta.20.properties  | 2 --
 .../org/apache/commons/statistics/distribution/test.beta.22.properties  | 2 --
 .../org/apache/commons/statistics/distribution/test.beta.24.properties  | 2 --
 6 files changed, 12 deletions(-)

diff --git a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.11.properties b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.11.properties
index 0185ff8..d3b2e56 100644
--- a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.11.properties
+++ b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.11.properties
@@ -14,8 +14,6 @@
 # limitations under the License.
 
 parameters = 1.0 0.1
-# Limited by CDF inverse mapping test
-tolerance.relative = 1e-8
 # Computed using Matlab
 mean = 0.909090909090909
 variance = 0.039354584809130
diff --git a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.16.properties b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.16.properties
index 1545d5e..57892ff 100644
--- a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.16.properties
+++ b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.16.properties
@@ -14,8 +14,6 @@
 # limitations under the License.
 
 parameters = 2.0 0.1
-# Limited by CDF inverse mapping test
-tolerance.relative = 1e-8
 # Computed using Matlab
 mean = 0.95238095238095233
 variance = 0.01462950771706532
diff --git a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.18.properties b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.18.properties
index 93e2b39..23335fe 100644
--- a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.18.properties
+++ b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.18.properties
@@ -14,8 +14,6 @@
 # limitations under the License.
 
 parameters = 2.0 1.0
-# Limited by CDF inverse mapping test
-tolerance.relative = 1e-8
 # Computed using Matlab
 mean = 0.66666666666666663
 variance = 0.055555555555555552
diff --git a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.20.properties b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.20.properties
index 52fabe8..32c8053 100644
--- a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.20.properties
+++ b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.20.properties
@@ -14,8 +14,6 @@
 # limitations under the License.
 
 parameters = 2.0 4.0
-# Limited by CDF inverse mapping test
-tolerance.relative = 1e-8
 # Computed using Matlab
 mean = 0.33333333333333331
 variance = 0.031746031746031744
diff --git a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.22.properties b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.22.properties
index 2e0e5e1..9e554fc 100644
--- a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.22.properties
+++ b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.22.properties
@@ -14,8 +14,6 @@
 # limitations under the License.
 
 parameters = 4.0 0.5
-# Limited by CDF inverse mapping test
-tolerance.relative = 1e-8
 # Computed using Matlab
 mean = 0.88888888888888884
 variance = 0.017957351290684626
diff --git a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.24.properties b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.24.properties
index 3971edc..cd0a91b 100644
--- a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.24.properties
+++ b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.beta.24.properties
@@ -19,8 +19,6 @@ mean = 0.66666666666666663
 variance = 0.031746031746031744
 lower = 0
 upper = 1
-# Limited by CDF inverse mapping test
-tolerance.absolute = 1e-8
 cdf.points = -0.1, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1
 cdf.values = 0 0 0.00046000000000000056 0.0067200000000000037 0.030779999999999971 0.087040000000000006 0.18749999999999992 0.33695999999999976 0.52822000000000002 0.73728000000000005 0.91854000000000002 1 1
 pdf.values = 0 0 0.018000000000000016 0.12800000000000006 0.37799999999999967 0.7679999999999999 1.25 1.7279999999999998 2.0579999999999994 2.0479999999999996 1.4579999999999993 0 0