commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [1/2] commons-rng git commit: Javadoc.
Date Wed, 17 Aug 2016 10:39:49 GMT
Repository: commons-rng
Updated Branches:
  refs/heads/master edf9f927c -> dbf0756aa


Javadoc.


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

Branch: refs/heads/master
Commit: d55ae2fd4f69c086ac444ae747582c2f48923ba2
Parents: edf9f92
Author: Gilles <erans@apache.org>
Authored: Wed Aug 17 14:08:18 2016 +0200
Committer: Gilles <erans@apache.org>
Committed: Wed Aug 17 14:08:18 2016 +0200

----------------------------------------------------------------------
 .../org/apache/commons/rng/RandomSource.java    |  1 +
 .../rng/internal/source32/AbstractWell.java     |  4 ++--
 .../rng/internal/source32/ISAACRandom.java      | 22 ++++++++++----------
 .../rng/internal/source32/MersenneTwister.java  |  4 ++--
 .../rng/internal/util/NumberFactory.java        | 10 ++++-----
 5 files changed, 21 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d55ae2fd/src/main/java/org/apache/commons/rng/RandomSource.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/RandomSource.java b/src/main/java/org/apache/commons/rng/RandomSource.java
index 563458a..195c5ec 100644
--- a/src/main/java/org/apache/commons/rng/RandomSource.java
+++ b/src/main/java/org/apache/commons/rng/RandomSource.java
@@ -301,6 +301,7 @@ public enum RandomSource {
      *   When the native seed type is an array and the {@code seed} is
      *   {@code null}, the size of the generated array will be 128.
      *  </li>
+     * </ul>
      * </p>
      *
      * @param source RNG type.

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d55ae2fd/src/main/java/org/apache/commons/rng/internal/source32/AbstractWell.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/source32/AbstractWell.java b/src/main/java/org/apache/commons/rng/internal/source32/AbstractWell.java
index 4b759c2..c28758a 100644
--- a/src/main/java/org/apache/commons/rng/internal/source32/AbstractWell.java
+++ b/src/main/java/org/apache/commons/rng/internal/source32/AbstractWell.java
@@ -44,7 +44,7 @@ public abstract class AbstractWell extends IntProvider {
     protected final int[] v;
 
     /**
-     * Creates a new random number generator using an int array seed.
+     * Creates an instance with the given {@code seed}.
      *
      * @param k Number of bits in the pool (not necessarily a multiple of 32).
      * @param seed Initial seed.
@@ -79,7 +79,7 @@ public abstract class AbstractWell extends IntProvider {
     }
 
     /**
-     * Reinitialize the generator as if just built with the given int array seed.
+     * Initializes the generator with the given {@code seed}.
      *
      * <p>The state of the generator is exactly the same as a new generator built
      * with the same seed.</p>

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d55ae2fd/src/main/java/org/apache/commons/rng/internal/source32/ISAACRandom.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/source32/ISAACRandom.java b/src/main/java/org/apache/commons/rng/internal/source32/ISAACRandom.java
index 8d90881..6e6a4db 100644
--- a/src/main/java/org/apache/commons/rng/internal/source32/ISAACRandom.java
+++ b/src/main/java/org/apache/commons/rng/internal/source32/ISAACRandom.java
@@ -41,27 +41,27 @@ import org.apache.commons.rng.internal.util.NumberFactory;
  * @since 1.0
  */
 public class ISAACRandom extends IntProvider {
-    /** Log of size of rsl[] and mem[] */
+    /** Log of size of rsl[] and mem[]. */
     private static final int SIZE_L = 8;
-    /** Size of rsl[] and mem[] */
+    /** Size of rsl[] and mem[]. */
     private static final int SIZE = 1 << SIZE_L;
-    /** Half-size of rsl[] and mem[] */
+    /** Half-size of rsl[] and mem[]. */
     private static final int H_SIZE = SIZE >> 1;
-    /** For pseudo-random lookup */
+    /** For pseudo-random lookup. */
     private static final int MASK = SIZE - 1 << 2;
-    /** The golden ratio */
+    /** The golden ratio. */
     private static final int GLD_RATIO = 0x9e3779b9;
-    /** The results given to the user */
+    /** The results given to the user. */
     private final int[] rsl = new int[SIZE];
-    /** The internal state */
+    /** The internal state. */
     private final int[] mem = new int[SIZE];
-    /** Count through the results in rsl[] */
+    /** Count through the results in rsl[]. */
     private int count;
-    /** Accumulator */
+    /** Accumulator. */
     private int isaacA;
-    /** The last result */
+    /** The last result. */
     private int isaacB;
-    /** Counter, guarantees cycle is at least 2^40 */
+    /** Counter, guarantees cycle is at least 2^40. */
     private int isaacC;
     /** Service variable. */
     private final int[] arr = new int[8];

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d55ae2fd/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java b/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java
index 44010a3..05d11a4 100644
--- a/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java
+++ b/src/main/java/org/apache/commons/rng/internal/source32/MersenneTwister.java
@@ -89,11 +89,11 @@ public class MersenneTwister extends IntProvider {
     private static final long INT_MASK_LONG = 0xffffffffL;
     /** Most significant w-r bits. */
     private static final long UPPER_MASK_LONG = 0x80000000L;
-    /** Least significant r bits */
+    /** Least significant r bits. */
     private static final long LOWER_MASK_LONG = 0x7fffffffL;
     /** Most significant w-r bits. */
     private static final int UPPER_MASK = 0x80000000;
-    /** Least significant r bits */
+    /** Least significant r bits. */
     private static final int LOWER_MASK = 0x7fffffff;
     /** Size of the bytes pool. */
     private static final int N = 624;

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/d55ae2fd/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java b/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java
index b350c63..b769db6 100644
--- a/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java
+++ b/src/main/java/org/apache/commons/rng/internal/util/NumberFactory.java
@@ -23,19 +23,19 @@ import java.util.Arrays;
  * or one {@code long} value, or a sequence of bytes.
  */
 public final class NumberFactory {
-    /** See {@link #makeDouble(long)} */
+    /** See {@link #makeDouble(long)}. */
     private static final long DOUBLE_HIGH_BITS = 0x3ffL << 52;
-    /** See {@link #makeFloat(int)} */
+    /** See {@link #makeFloat(int)}. */
     private static final float FLOAT_MULTIPLIER = 0x1.0p-23f;
-    /** See {@link #makeDouble(int, int)} */
+    /** See {@link #makeDouble(int, int)}. */
     private static final double DOUBLE_MULTIPLIER = 0x1.0p-52d;
     /** Lowest byte mask. */
     private static final long LONG_LOWEST_BYTE_MASK = 0xffL;
-    /** Number of bytes in a {@code long} */
+    /** Number of bytes in a {@code long}. */
     private static final int LONG_SIZE = 8;
     /** Lowest byte mask. */
     private static final int INT_LOWEST_BYTE_MASK = 0xff;
-    /** Number of bytes in a {@code int} */
+    /** Number of bytes in a {@code int}. */
     private static final int INT_SIZE = 4;
 
     /**


Mime
View raw message