You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2015/08/31 14:02:57 UTC

[1/4] [math] Spurious javadoc parameter.

Repository: commons-math
Updated Branches:
  refs/heads/MATH_3_X 2762c6600 -> f189a4c5a


Spurious javadoc parameter.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/79bbb305
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/79bbb305
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/79bbb305

Branch: refs/heads/MATH_3_X
Commit: 79bbb3054ca353bb17360f6be2ebd1d57ebcae89
Parents: 2762c66
Author: Luc Maisonobe <lu...@apache.org>
Authored: Mon Aug 31 13:50:52 2015 +0200
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Mon Aug 31 13:50:52 2015 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/math3/util/IntegerSequence.java | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/79bbb305/src/main/java/org/apache/commons/math3/util/IntegerSequence.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/util/IntegerSequence.java b/src/main/java/org/apache/commons/math3/util/IntegerSequence.java
index 1dccb6b..ffd966f 100644
--- a/src/main/java/org/apache/commons/math3/util/IntegerSequence.java
+++ b/src/main/java/org/apache/commons/math3/util/IntegerSequence.java
@@ -125,7 +125,6 @@ public class IntegerSequence {
          * @param start Initial value.
          * @param max Maximal count.
          * @param step Increment.
-         * @param nTimes Number of increments.
          * @param cb Function to be called when the maximal count has been reached.
          * @throws NullArgumentException if {@code cb} is {@code null}.
          */


[2/4] [math] Missing javadoc.

Posted by lu...@apache.org.
Missing javadoc.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/afe2f3e0
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/afe2f3e0
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/afe2f3e0

Branch: refs/heads/MATH_3_X
Commit: afe2f3e00222957b14e548d5ae27ed4b6d67f526
Parents: 79bbb30
Author: Luc Maisonobe <lu...@apache.org>
Authored: Mon Aug 31 13:55:31 2015 +0200
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Mon Aug 31 13:58:24 2015 +0200

----------------------------------------------------------------------
 .../commons/math3/distribution/ZipfDistribution.java     | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/afe2f3e0/src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java b/src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java
index bd43d35..cca312a 100644
--- a/src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java
+++ b/src/main/java/org/apache/commons/math3/distribution/ZipfDistribution.java
@@ -260,6 +260,9 @@ public class ZipfDistribution extends AbstractIntegerDistribution {
         return true;
     }
 
+    /**
+     * {@inheritDoc}
+     */
     public int sample() {
         if (sampler == null) {
             sampler = new ZipfRejectionInversionSampler(numberOfElements, exponent);
@@ -304,6 +307,10 @@ public class ZipfDistribution extends AbstractIntegerDistribution {
         /** Constant equal to {@code 2 - hIntegralInverse(hIntegral(2.5) - h(2)}. */
         private final double s;
 
+        /** Simple constructor.
+         * @param numberOfElements number of elements
+         * @param exponent exponent parameter of the distribution
+         */
         ZipfRejectionInversionSampler(final int numberOfElements, final double exponent) {
             this.exponent = exponent;
             this.numberOfElements = numberOfElements;
@@ -312,6 +319,10 @@ public class ZipfDistribution extends AbstractIntegerDistribution {
             this.s = 2d - hIntegralInverse(hIntegral(2.5) - h(2));
         }
 
+        /** Generate one integral number in the range [1, numberOfElements].
+         * @param random random generator to use
+         * @return generated integral number in the range [1, numberOfElements]
+         */
         int sample(final RandomGenerator random) {
             while(true) {
 


[3/4] [math] Missing javadoc.

Posted by lu...@apache.org.
Missing javadoc.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/265dd679
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/265dd679
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/265dd679

Branch: refs/heads/MATH_3_X
Commit: 265dd679aac547083ad5824b8cdcef8b2d4fb83f
Parents: afe2f3e
Author: Luc Maisonobe <lu...@apache.org>
Authored: Mon Aug 31 14:01:55 2015 +0200
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Mon Aug 31 14:01:55 2015 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/math3/util/MathArrays.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/265dd679/src/main/java/org/apache/commons/math3/util/MathArrays.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/util/MathArrays.java b/src/main/java/org/apache/commons/math3/util/MathArrays.java
index 82310ac..2ed7367 100644
--- a/src/main/java/org/apache/commons/math3/util/MathArrays.java
+++ b/src/main/java/org/apache/commons/math3/util/MathArrays.java
@@ -748,19 +748,26 @@ public class MathArrays {
      * A helper data structure holding a double and an integer value.
      */
     private static class PairDoubleInteger {
-
+        /** Key */
         private final double key;
+        /** Value */
         private final int value;
 
+        /**
+         * @param key Key.
+         * @param value Value.
+         */
         public PairDoubleInteger(double key, int value) {
             this.key = key;
             this.value = value;
         }
 
+        /** @return the key. */
         public double getKey() {
             return key;
         }
 
+        /** @return the value. */
         public int getValue() {
             return value;
         }


[4/4] [math] Spurious whitespace.

Posted by lu...@apache.org.
Spurious whitespace.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/f189a4c5
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/f189a4c5
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/f189a4c5

Branch: refs/heads/MATH_3_X
Commit: f189a4c5aabca2a44b79971a48a250c0fa68446a
Parents: 265dd67
Author: Luc Maisonobe <lu...@apache.org>
Authored: Mon Aug 31 14:02:27 2015 +0200
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Mon Aug 31 14:02:27 2015 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/math3/util/MathArrays.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/f189a4c5/src/main/java/org/apache/commons/math3/util/MathArrays.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/util/MathArrays.java b/src/main/java/org/apache/commons/math3/util/MathArrays.java
index 2ed7367..45f9273 100644
--- a/src/main/java/org/apache/commons/math3/util/MathArrays.java
+++ b/src/main/java/org/apache/commons/math3/util/MathArrays.java
@@ -452,7 +452,7 @@ public class MathArrays {
                                         int[] b) {
         checkEqualLength(a, b, true);
     }
-    
+
     /**
      * Check that the given array is sorted.
      *