SSJ
V. 2.6.2.

umontreal.iro.lecuyer.hups
Class SMScrambleShift

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

public class SMScrambleShift
extends RandomShift

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


Constructor Summary
SMScrambleShift()
          Empty constructor.
SMScrambleShift(RandomStream stream)
          Sets internal variable stream to the given stream.
 
Method Summary
 void randomize(PointSet p)
          This method calls stripedMatrixScramble, 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

SMScrambleShift

public SMScrambleShift()
Empty constructor.


SMScrambleShift

public SMScrambleShift(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 stripedMatrixScramble, 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.2.

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