From 8a3dd3725f8cd9361677ffb48c9d5a768217c99c Mon Sep 17 00:00:00 2001
From: Sebastien Brisard
Date: Fri, 31 Aug 2012 01:53:19 +0000
Subject: [PATCH] Formatting.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1379252 13f79535-47bb-0310-9956-ffa450edef68
---
.../apache/commons/math3/special/Gamma.java | 21 ++++++++++---------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/main/java/org/apache/commons/math3/special/Gamma.java b/src/main/java/org/apache/commons/math3/special/Gamma.java
index 118373a4c..408556b22 100644
--- a/src/main/java/org/apache/commons/math3/special/Gamma.java
+++ b/src/main/java/org/apache/commons/math3/special/Gamma.java
@@ -229,7 +229,7 @@ public class Gamma {
* approximation
*
*
- * @param x argument.
+ * @param x Argument.
* @return the value of {@code log(Gamma(x))}, {@code Double.NaN} if
* {@code x <= 0.0}.
*/
@@ -493,8 +493,8 @@ public class Gamma {
* where {@code g} is a constant, returned by {@link #getLanczosG()}.
*
*
- * @param x the argument
- * @return the Lanczos approximation
+ * @param x Argument.
+ * @return The Lanczos approximation.
* @see Lanczos Approximation
* equations (1) through (5), and Paul Godfrey's
* Note on the computation
@@ -514,8 +514,8 @@ public class Gamma {
* implementation in the NSWC Library of Mathematics Subroutines,
* {@code DGAM1}.
*
- * @param x the argument
- * @return the value of {@code 1.0 / Gamma(1.0 + x) - 1.0}
+ * @param x Argument.
+ * @return The value of {@code 1.0 / Gamma(1.0 + x) - 1.0}.
* @throws NumberIsTooSmallException if {@code x < -0.5}
* @throws NumberIsTooLargeException if {@code x > 1.5}
*/
@@ -606,12 +606,13 @@ public class Gamma {
* This implementation is based on the double precision implementation in
* the NSWC Library of Mathematics Subroutines, {@code DGMLN1}.
*
- * @param x the argument
- * @return the value of {@code log(Gamma(1 + x))}
- * @throws NumberIsTooSmallException if {@code x < -0.5}
- * @throws NumberIsTooLargeException if {@code x > 1.5}
+ * @param x Argument.
+ * @return The value of {@code log(Gamma(1 + x))}.
+ * @throws NumberIsTooSmallException if {@code x < -0.5}.
+ * @throws NumberIsTooLargeException if {@code x > 1.5}.
*/
- public static double logGamma1p(final double x) {
+ public static double logGamma1p(final double x)
+ throws NumberIsTooSmallException, NumberIsTooLargeException {
if (x < -0.5) {
throw new NumberIsTooSmallException(x, -0.5, true);