umontreal.iro.lecuyer.hups
Class LMScrambleShift
- java.lang.Object
-
- umontreal.iro.lecuyer.hups.RandomShift
-
- umontreal.iro.lecuyer.hups.LMScrambleShift
-
- All Implemented Interfaces:
- PointSetRandomization
public class LMScrambleShift extends RandomShift
This class implements aPointSetRandomizationthat performs a left matrix scrambling and adds a random digital shift. Point set must be aDigitalNetor anIllegalArgumentExceptionis thrown.
-
-
Constructor Summary
Constructors Constructor and Description LMScrambleShift()Empty constructor.LMScrambleShift(RandomStream stream)Sets internal variable stream to the given stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidrandomize(PointSet p)This method callsleftMatrixScramble, thenaddRandomShift.-
Methods inherited from class umontreal.iro.lecuyer.hups.RandomShift
getStream, setStream
-
-
-
-
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 callsleftMatrixScramble, thenaddRandomShift. If p is not aDigitalNet, anIllegalArgumentExceptionis thrown.- Specified by:
randomizein interfacePointSetRandomization- Overrides:
randomizein classRandomShift- Parameters:
p- Point set to randomize
-
-
DMelt 3.0 © DataMelt by jWork.ORG