commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1413807 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special: Beta.java Gamma.java
Date Mon, 26 Nov 2012 19:55:08 GMT
Author: celestin
Date: Mon Nov 26 19:55:07 2012
New Revision: 1413807

URL: http://svn.apache.org/viewvc?rev=1413807&view=rev
Log:
In classes o.a.c.m3.special.Gamma and o.a.c.m3.special.Beta, made some
auxiliary functions package private. It is very unlikely that these functions
should be used outside this package, and if necessary, it will always be
possible to increase their visibility (while the reverse would break
compatibility).

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Beta.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Gamma.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Beta.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Beta.java?rev=1413807&r1=1413806&r2=1413807&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Beta.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/special/Beta.java Mon
Nov 26 19:55:07 2012
@@ -282,7 +282,7 @@ public class Beta {
      * @return the value of {@code Delta(p) + Delta(q) - Delta(p + q)}.
      * @throws NumberIsTooSmallException if {@code p < 10.0} or {@code q < 10.0}.
      */
-    public static final double bcorr(final double p, final double q) {
+    static final double bcorr(final double p, final double q) {
 
         if (p < 10.0) {
             throw new NumberIsTooSmallException(p, 10.0, true);

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=1413807&r1=1413806&r2=1413807&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 Mon
Nov 26 19:55:07 2012
@@ -779,7 +779,7 @@ public class Gamma {
      * @throws OutOfRangeException if {@code a} or {@code b} is lower than
      * {@code 1.0} or greater than {@code 2.0}.
      */
-    public static double logGammaSum(final double a, final double b)
+     static double logGammaSum(final double a, final double b)
         throws OutOfRangeException {
 
         if ((a < 1.0) || (a > 2.0)) {
@@ -809,8 +809,8 @@ public class Gamma {
      * @return the value of {@code log(Gamma(b) / Gamma(a + b))}.
      * @throws NumberIsTooSmallException if {@code a < 0.0} or {@code b < 8.0}.
      */
-    public static final double logGammaMinusLogGammaSum(final double a,
-                                                        final double b)
+    static final double logGammaMinusLogGammaSum(final double a,
+                                                 final double b)
         throws NumberIsTooSmallException {
 
         if (a < 0.0) {



Mime
View raw message