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 2024/08/16 11:22:28 UTC
(commons-statistics) branch master updated: Sonar fix: reword comment to avoid false positive commented code
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 7dc1343 Sonar fix: reword comment to avoid false positive commented code
7dc1343 is described below
commit 7dc1343d6b88199bee10bcd3c6ce18ea622b127c
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Aug 16 12:21:07 2024 +0100
Sonar fix: reword comment to avoid false positive commented code
---
.../commons/statistics/distribution/FoldedNormalDistributionTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/FoldedNormalDistributionTest.java b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/FoldedNormalDistributionTest.java
index 3a8dd8d..11858c3 100644
--- a/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/FoldedNormalDistributionTest.java
+++ b/commons-statistics-distribution/src/test/java/org/apache/commons/statistics/distribution/FoldedNormalDistributionTest.java
@@ -64,8 +64,8 @@ class FoldedNormalDistributionTest extends BaseContinuousDistributionTest {
@ParameterizedTest
@MethodSource
void testMean(double mu, double sigma) {
- // Expected mean is the weighted means of each truncated distribution;
- // the mean of the distribution below the origin must be negated
+ // Expected mean is the weighted means of each truncated distribution.
+ // The mean of the distribution below the origin must be negated.
final TruncatedNormalDistribution t1 = TruncatedNormalDistribution.of(mu, sigma, Double.NEGATIVE_INFINITY, 0);
final TruncatedNormalDistribution t2 = TruncatedNormalDistribution.of(mu, sigma, 0, Double.POSITIVE_INFINITY);
final NormalDistribution n = NormalDistribution.of(mu, sigma);