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/08/02 21:46:45 UTC
[commons-statistics] 03/03: Remove unnecessary braces
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 910dc791e32d37b6a56aa6bc021bfa3cfa99e48c
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Mon Aug 2 22:46:37 2021 +0100
Remove unnecessary braces
---
.../apache/commons/statistics/distribution/LogNormalDistribution.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LogNormalDistribution.java b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LogNormalDistribution.java
index e2b86af..5025592 100644
--- a/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LogNormalDistribution.java
+++ b/commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/LogNormalDistribution.java
@@ -207,7 +207,7 @@ public class LogNormalDistribution extends AbstractContinuousDistribution {
public double getVariance() {
final double s = shape;
final double ss = s * s;
- return (Math.expm1(ss)) * Math.exp(2 * scale + ss);
+ return Math.expm1(ss) * Math.exp(2 * scale + ss);
}
/**