protected static final class AbstractWell.IndexTable extends Object
| Constructor | Description |
|---|---|
IndexTable(int k,
int m1,
int m2,
int m3) |
Creates a new pre-calculated indirection index table.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getIndexM1(int index) |
Returns index + M1 modulo the table size.
|
int |
getIndexM2(int index) |
Returns index + M2 modulo the table size.
|
int |
getIndexM3(int index) |
Returns index + M3 modulo the table size.
|
int |
getIndexPred(int index) |
Returns the predecessor of the given index modulo the table size.
|
int |
getIndexPred2(int index) |
Returns the second predecessor of the given index modulo the table size.
|
public IndexTable(int k,
int m1,
int m2,
int m3)
k - number of bits in the pool (not necessarily a multiple of 32)m1 - first parameter of the algorithmm2 - second parameter of the algorithmm3 - third parameter of the algorithmpublic int getIndexPred(int index)
index - the index to look atpublic int getIndexPred2(int index)
index - the index to look atpublic int getIndexM1(int index)
index - the index to look atpublic int getIndexM2(int index)
index - the index to look atpublic int getIndexM3(int index)
index - the index to look atCopyright © 2016–2018 Hipparchus.org. All rights reserved.