|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.hups.PointSet
umontreal.iro.lecuyer.hups.DigitalNet
umontreal.iro.lecuyer.hups.DigitalNetBase2
public class DigitalNetBase2
DigitalNetBase2
A special case of DigitalNet for the base b = 2. The implementation exploit the binary nature of computers and is much more efficient than for the general case. Binary expansions are easy to obtain because the computer already uses them internally. The generator matrices Cj are stored in a large array of size sk. The c-th column of Cj, for c = 0,..., k - 1, is stored at position jk + c of that array, as a 32-bit integer. For all derived classes, the above 32-bit integer must be of the form [00 ... C0C1 ... Cr-1]. The value of k cannot exceed 31 (32 is not allowed because Java does not have 32-bit unsigned integers). The value of w is always 31. In this implementation, w is always used in place of r so the value of r is not used.
The random digital shift in base 2 corresponds to a random XOR. It can be applied via the method addRandomShift.
| Constructor Summary | |
|---|---|
DigitalNetBase2()
|
|
| Methods inherited from class umontreal.iro.lecuyer.hups.DigitalNet |
|---|
eraseOriginalGeneratorMatrices, resetGeneratorMatrices, unrandomize |
| Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
|---|
addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, randomize, randomize, randomize, randomize, randomize, setStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DigitalNetBase2()
| Method Detail |
|---|
public void printGeneratorMatrices(int s)
printGeneratorMatrices in class DigitalNetpublic void printGeneratorMatricesTrans(int s)
public double getCoordinate(int i,
int j)
PointSet
getCoordinate in class DigitalNet
public double getCoordinateNoGray(int i,
int j)
DigitalNet
getCoordinateNoGray in class DigitalNetpublic PointSetIterator iterator()
PointSet
iterator in class DigitalNetpublic PointSetIterator iteratorNoGray()
iteratorNoGray in class DigitalNetpublic String toString()
PointSet
toString in class DigitalNetpublic void clearRandomShift()
DigitalNet
clearRandomShift in class DigitalNetpublic void addRandomShift(RandomStream stream)
DigitalNet
addRandomShift in class DigitalNet
public void addRandomShift(int d1,
int d2,
RandomStream stream)
DigitalNet
addRandomShift in class DigitalNetpublic void leftMatrixScramble(RandomStream stream)
DigitalNet
leftMatrixScramble in class DigitalNetpublic void iBinomialMatrixScramble(RandomStream stream)
DigitalNet
iBinomialMatrixScramble in class DigitalNetpublic void stripedMatrixScramble(RandomStream stream)
DigitalNet
stripedMatrixScramble in class DigitalNetpublic void rightMatrixScramble(RandomStream stream)
DigitalNet
rightMatrixScramble in class DigitalNetpublic void leftMatrixScrambleDiag(RandomStream stream)
DigitalNet
leftMatrixScrambleDiag in class DigitalNet
public void leftMatrixScrambleFaurePermut(RandomStream stream,
int sb)
DigitalNet
leftMatrixScrambleFaurePermut in class DigitalNet
public void leftMatrixScrambleFaurePermutDiag(RandomStream stream,
int sb)
DigitalNet
leftMatrixScrambleFaurePermutDiag in class DigitalNet
public void leftMatrixScrambleFaurePermutAll(RandomStream stream,
int sb)
DigitalNet
leftMatrixScrambleFaurePermutAll in class DigitalNet
public void iBinomialMatrixScrambleFaurePermut(RandomStream stream,
int sb)
DigitalNet
iBinomialMatrixScrambleFaurePermut in class DigitalNet
public void iBinomialMatrixScrambleFaurePermutDiag(RandomStream stream,
int sb)
DigitalNet
iBinomialMatrixScrambleFaurePermutDiag in class DigitalNet
public void iBinomialMatrixScrambleFaurePermutAll(RandomStream stream,
int sb)
DigitalNet
iBinomialMatrixScrambleFaurePermutAll in class DigitalNet
public void stripedMatrixScrambleFaurePermutAll(RandomStream stream,
int sb)
DigitalNet
stripedMatrixScrambleFaurePermutAll in class DigitalNet
|
SSJ V. labo. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||