SSJ
V. 2.6.

umontreal.iro.lecuyer.hups
Class LMScrambleShift

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.RandomShift
      extended by umontreal.iro.lecuyer.hups.LMScrambleShift
All Implemented Interfaces:
PointSetRandomization

public class LMScrambleShift
extends RandomShift

This class implements a PointSetRandomization that performs a left matrix scrambling and adds a random digital shift. Point set must be a DigitalNet or an IllegalArgumentException is thrown.


Constructor Summary
LMScrambleShift()
          Empty constructor.
LMScrambleShift(RandomStream stream)
          Sets internal variable stream to the given stream.
 
Method Summary
 void randomize(PointSet p)
          This method calls leftMatrixScramble, then addRandomShift.
 
Methods inherited from class umontreal.iro.lecuyer.hups.RandomShift
getStream, setStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LMScrambleShift

public LMScrambleShift()
Empty constructor.


LMScrambleShift

public LMScrambleShift(RandomStream stream)
Sets internal variable stream to the given stream.

Parameters:
stream - stream to use in the randomization
Method Detail

randomize

public void randomize(PointSet p)
This method calls leftMatrixScramble, then addRandomShift. If p is not a DigitalNet, an IllegalArgumentException is thrown.

Specified by:
randomize in interface PointSetRandomization
Overrides:
randomize in class RandomShift
Parameters:
p - Point set to randomize

SSJ
V. 2.6.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.