Author: celestin Date: Fri Aug 31 02:51:24 2012 New Revision: 1379262 URL: http://svn.apache.org/viewvc?rev=1379262&view=rev Log: Formatting.
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Gamma.java commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/GammaTest.java Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Gamma.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Gamma.java?rev=1379262&r1=1379261&r2=1379262&view=diff ============================================================================== --- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Gamma.java (original) +++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Gamma.java Fri Aug 31 02:51:24 2012 @@ -66,6 +66,7 @@ public class Gamma { /** Maximum allowed numerical error. */ private static final double DEFAULT_EPSILON = 10e-15; + /** Lanczos coefficients */ private static final double[] LANCZOS = { 0.99999999999999709182, @@ -84,6 +85,7 @@ public class Gamma { -.26190838401581408670e-4, .36899182659531622704e-5, }; + /** Avoid repeated computation of log of 2 PI in logGamma */ private static final double HALF_LOG_2_PI = 0.5 * FastMath.log(2.0 * FastMath.PI); @@ -93,6 +95,7 @@ public class Gamma { // limits for switching algorithm in digamma /** C limit. */ private static final double C_LIMIT = 49; + /** S limit. */ private static final double S_LIMIT = 1e-5; Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/GammaTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/GammaTest.java?rev=1379262&r1=1379261&r2=1379262&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/GammaTest.java (original) +++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/special/GammaTest.java Fri Aug 31 02:51:24 2012 @@ -334,7 +334,7 @@ public class GammaTest { /** * <p> - * Reference values for the {@link GammaNSWC#invGamma1pm1(double)} method. + * Reference values for the {@link Gamma#invGamma1pm1(double)} method. * These values were generated with the following <a * href="http://maxima.sourceforge.net/">Maxima</a> script * </p> @@ -446,7 +446,7 @@ public class GammaTest { } /** - * Reference data for the {@link GammaNSWC#gamma(double)} function. This + * Reference data for the {@link Gamma#gamma(double)} function. This * data was generated with the following <a * href="http://maxima.sourceforge.net/">Maxima</a> script. *