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 2022/11/25 17:27:03 UTC

[commons-statistics] branch master updated (19d6f8a -> f1e0c0d)

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git


    from 19d6f8a  Added additional log density tests for Nakagami distribution
     new 1c85c4d  Remove unused create tolerance methods.
     new 5345d96  Javadoc typos
     new f1e0c0d  Reinstate previously failing test

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../BaseContinuousDistributionTest.java            |  4 +--
 .../distribution/BaseDistributionTest.java         | 32 ----------------------
 .../distribution/test.lognormal.2.properties       |  3 --
 3 files changed, 2 insertions(+), 37 deletions(-)


[commons-statistics] 03/03: Reinstate previously failing test

Posted by ah...@apache.org.
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 f1e0c0d2eee3c1a2114dbc5cb84cd3df6e347f35
Author: aherbert <ah...@apache.org>
AuthorDate: Fri Nov 25 17:12:31 2022 +0000

    Reinstate previously failing test
---
 .../apache/commons/statistics/distribution/test.lognormal.2.properties | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.lognormal.2.properties b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.lognormal.2.properties
index 27ad58a..93afbd0 100644
--- a/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.lognormal.2.properties
+++ b/commons-statistics-distribution/src/test/resources/org/apache/commons/statistics/distribution/test.lognormal.2.properties
@@ -54,6 +54,3 @@ pdf.values = \
   1.4800157244728182e-01, 1.2591055687217639e-01,\
   1.0666557638466362e-01, 9.0086334161030540e-02,\
   7.5921269497598851e-02
-# Fails on point 0.01 (cdf=1.8139777883515717e-29) which returns 0.0 not 0.01.
-# Currently the inverse uses 2*p-1 which loses precision as p -> 0.
-disable.cdf.inverse = true


[commons-statistics] 02/03: Javadoc typos

Posted by ah...@apache.org.
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 5345d96e7c68dc8547be5b39c4910c5e785fd435
Author: aherbert <ah...@apache.org>
AuthorDate: Fri Nov 25 16:55:23 2022 +0000

    Javadoc typos
---
 .../statistics/distribution/BaseContinuousDistributionTest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseContinuousDistributionTest.java b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseContinuousDistributionTest.java
index e976304..2510156 100644
--- a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseContinuousDistributionTest.java
+++ b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseContinuousDistributionTest.java
@@ -208,9 +208,9 @@ import org.junit.jupiter.params.provider.MethodSource;
 abstract class BaseContinuousDistributionTest
     extends BaseDistributionTest<ContinuousDistribution, ContinuousDistributionTestData> {
 
-    /** Relative accuracy of the integrator result. */
-    private static final double INTEGRATOR_ABS_ACCURACY = 1e-10;
     /** Absolute accuracy of the integrator result. */
+    private static final double INTEGRATOR_ABS_ACCURACY = 1e-10;
+    /** Relative accuracy of the integrator result. */
     private static final double INTEGRATOR_REL_ACCURACY = 1e-12;
 
     @Override


[commons-statistics] 01/03: Remove unused create tolerance methods.

Posted by ah...@apache.org.
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 1c85c4df34f09cc5096ab50e2cf469a8c03b29db
Author: aherbert <ah...@apache.org>
AuthorDate: Fri Nov 25 15:11:50 2022 +0000

    Remove unused create tolerance methods.
---
 .../distribution/BaseDistributionTest.java         | 32 ----------------------
 1 file changed, 32 deletions(-)

diff --git a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseDistributionTest.java b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseDistributionTest.java
index 92f4b44..aa7da83 100644
--- a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseDistributionTest.java
+++ b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BaseDistributionTest.java
@@ -295,38 +295,6 @@ abstract class BaseDistributionTest<T, D extends DistributionTestData> {
         return relTolerance > 0 ? tol.or(DoubleTolerances.relative(relTolerance)) : tol;
     }
 
-    /**
-     * Creates the tolerance using an absolute error.
-     *
-     * <p>If the absolute tolerance is zero it is ignored and a tolerance of numerical equality
-     * is used.
-     *
-     * @param testData Test data
-     * @param tolerance Function to create the absolute tolerance
-     * @return the tolerance
-     */
-    DoubleTolerance createTestAbsTolerance(
-            D testData, ToDoubleFunction<D> tolerance) {
-        final double eps = tolerance == null ? 0 : tolerance.applyAsDouble(testData);
-        return createAbsTolerance(eps);
-    }
-
-    /**
-     * Creates the tolerance using a relative error.
-     *
-     * <p>If the relative tolerance is zero it is ignored and a tolerance of numerical equality
-     * is used.
-     *
-     * @param testData Test data
-     * @param tolerance Function to create the relative tolerance
-     * @return the tolerance
-     */
-    DoubleTolerance createTestRelTolerance(
-            D testData, ToDoubleFunction<D> tolerance) {
-        final double eps = tolerance == null ? 0 : tolerance.applyAsDouble(testData);
-        return createRelTolerance(eps);
-    }
-
     /**
      * Creates the tolerance using an {@code Or} combination of absolute and relative error.
      *