You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/10/21 22:23:54 UTC
svn commit: r1534362 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java
Author: tn
Date: Mon Oct 21 20:23:54 2013
New Revision: 1534362
URL: http://svn.apache.org/r1534362
Log:
Formatting.
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java?rev=1534362&r1=1534361&r2=1534362&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java Mon Oct 21 20:23:54 2013
@@ -290,15 +290,15 @@ public class GammaDistribution extends A
/*
* Natural calculation.
*/
- return densityPrefactor1 * FastMath.exp(-y) *
- FastMath.pow(y, shape - 1);
+ return densityPrefactor1 * FastMath.exp(-y) * FastMath.pow(y, shape - 1);
}
/** {@inheritDoc} **/
@Override
public double logDensity(double x) {
- /* see the comment in {@link #density(double)} for computation details
- */
+ /*
+ * see the comment in {@link #density(double)} for computation details
+ */
if (x < 0) {
return Double.NEGATIVE_INFINITY;
}
@@ -316,8 +316,7 @@ public class GammaDistribution extends A
/*
* Natural calculation.
*/
- return logDensityPrefactor1 - y +
- FastMath.log(y) * (shape - 1);
+ return logDensityPrefactor1 - y + FastMath.log(y) * (shape - 1);
}
/**