diff --git a/src/main/java/org/apache/commons/math3/distribution/NormalDistribution.java b/src/main/java/org/apache/commons/math3/distribution/NormalDistribution.java index ae6f937bc..79db716ca 100644 --- a/src/main/java/org/apache/commons/math3/distribution/NormalDistribution.java +++ b/src/main/java/org/apache/commons/math3/distribution/NormalDistribution.java @@ -153,7 +153,7 @@ public class NormalDistribution extends AbstractRealDistribution { /** {@inheritDoc} */ @Override - public double logDensity(double x) { + public double logDensity(double x) { final double x0 = x - mean; final double x1 = x0 / standardDeviation; return -0.5 * x1 * x1 - logStandardDeviationPlusHalfLog2Pi;