commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1054298 - in /commons/proper/math: branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java trunk/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
Date Sat, 01 Jan 2011 21:45:36 GMT
Author: psteitz
Date: Sat Jan  1 21:45:35 2011
New Revision: 1054298

URL: http://svn.apache.org/viewvc?rev=1054298&view=rev
Log:
Fixed checkstyle errors: hidden field, missing javadoc.

Modified:
    commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java

Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java?rev=1054298&r1=1054297&r2=1054298&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
Sat Jan  1 21:45:35 2011
@@ -351,15 +351,21 @@ public class GammaDistributionImpl exten
      */
     @Override
     protected double calculateNumericalVariance() {
-        final double beta = getBeta();
-        return getAlpha() * beta * beta;
+        final double b = getBeta();
+        return getAlpha() * b * b;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportLowerBoundInclusive() {
         return true;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportUpperBoundInclusive() {
         return false;

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java?rev=1054298&r1=1054297&r2=1054298&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/distribution/GammaDistributionImpl.java
Sat Jan  1 21:45:35 2011
@@ -288,15 +288,21 @@ public class GammaDistributionImpl exten
      */
     @Override
     protected double calculateNumericalVariance() {
-        final double beta = getBeta();        
-        return getAlpha() * beta * beta;
+        final double b = getBeta();        
+        return getAlpha() * b * b;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportLowerBoundInclusive() {
         return true;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     @Override
     public boolean isSupportUpperBoundInclusive() {
         return false;



Mime
View raw message