diff --git a/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java b/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java index e5fc2340d..8cf198478 100644 --- a/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java +++ b/src/main/java/org/apache/commons/math/distribution/ExponentialDistributionImpl.java @@ -313,15 +313,21 @@ public class ExponentialDistributionImpl extends AbstractContinuousDistribution */ @Override protected double calculateNumericalVariance() { - final double mean = getMean(); - return mean * mean; + final double m = getMean(); + return m * m; } + /** + * {@inheritDoc} + */ @Override public boolean isSupportLowerBoundInclusive() { return true; } + /** + * {@inheritDoc} + */ @Override public boolean isSupportUpperBoundInclusive() { return false;