commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1534362 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/GammaDistribution.java
Date Mon, 21 Oct 2013 20:23:54 GMT
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);
     }
 
     /**



Mime
View raw message