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 1f47e9dd32d22ff176c37227647590b218e5d3be Author: aherbert <aherb...@apache.org> AuthorDate: Wed Jul 21 14:33:16 2021 +0100 Use final --- .../commons/statistics/distribution/BetaDistributionTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BetaDistributionTest.java b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BetaDistributionTest.java index e2d44cb..fa55331 100644 --- a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BetaDistributionTest.java +++ b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/BetaDistributionTest.java @@ -239,14 +239,14 @@ class BetaDistributionTest { private void checkCumulativeSurvivalComplement(double alpha, double beta) { final BetaDistribution d = new BetaDistribution(alpha, beta); for (int i = 0; i < CUMULATIVE_TEST_POINTS.length; i++) { - double x = CUMULATIVE_TEST_POINTS[i]; + final double x = CUMULATIVE_TEST_POINTS[i]; Assertions.assertEquals(1, d.cumulativeProbability(x) + d.survivalProbability(x), 1e-8); } } private void checkCumulativePrecision(double alpha, double beta, double value, double expected) { final double tolerance = 1e-22; - BetaDistribution d = new BetaDistribution(alpha, beta); + final BetaDistribution d = new BetaDistribution(alpha, beta); Assertions.assertEquals( d.cumulativeProbability(value), expected, @@ -256,7 +256,7 @@ class BetaDistributionTest { private void checkSurvivalPrecision(double alpha, double beta, double value, double expected) { final double tolerance = 1e-22; - BetaDistribution d = new BetaDistribution(alpha, beta); + final BetaDistribution d = new BetaDistribution(alpha, beta); Assertions.assertEquals( d.survivalProbability(value), expected,