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:04 UTC
[commons-statistics] 01/03: Remove unused create tolerance methods.
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.
*