Repository: commons-math Updated Branches: refs/heads/master 03e65c98d -> 4140e0126
Fix checkstyle warnings. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/4140e012 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/4140e012 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/4140e012 Branch: refs/heads/master Commit: 4140e01266cf6ba3b2d3ef373dcd8357c30d8d08 Parents: 03e65c9 Author: tn <thomas.neidh...@gmail.com> Authored: Tue Feb 24 11:28:54 2015 +0100 Committer: tn <thomas.neidh...@gmail.com> Committed: Tue Feb 24 11:28:54 2015 +0100 ---------------------------------------------------------------------- .../java/org/apache/commons/math4/random/AbstractWell.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/4140e012/src/main/java/org/apache/commons/math4/random/AbstractWell.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/random/AbstractWell.java b/src/main/java/org/apache/commons/math4/random/AbstractWell.java index 048e841..ac6e857 100644 --- a/src/main/java/org/apache/commons/math4/random/AbstractWell.java +++ b/src/main/java/org/apache/commons/math4/random/AbstractWell.java @@ -152,7 +152,7 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial /** * Inner class used to store the indirection index table which is fixed for a given type of WELL class - * of pseudo-random number generator. + * of pseudo-random number generator. */ protected static final class IndexTable { /** Index indirection table giving for each index its predecessor taking table size into account. */ @@ -175,12 +175,11 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial * @param m1 first parameter of the algorithm * @param m2 second parameter of the algorithm * @param m3 third parameter of the algorithm - * @param seed the initial seed (64 bits integer) */ public IndexTable(final int k, final int m1, final int m2, final int m3) { final int r = calculateBlockCount(k); - + // precompute indirection index tables. These tables are used for optimizing access // they allow saving computations like "(j + r - 2) % r" with costly modulo operations iRm1 = new int[r]; @@ -196,7 +195,7 @@ public abstract class AbstractWell extends BitsStreamGenerator implements Serial i3[j] = (j + m3) % r; } } - + /** * Returns the predecessor of the given index modulo the table size. * @param index the index to look at