umontreal.iro.lecuyer.hups
Class SMScrambleShift
- java.lang.Object
-
- umontreal.iro.lecuyer.hups.RandomShift
-
- umontreal.iro.lecuyer.hups.SMScrambleShift
-
- All Implemented Interfaces:
- PointSetRandomization
public class SMScrambleShift extends RandomShift
This class implements aPointSetRandomizationthat performs a striped matrix scrambling and adds a random digital shift. Point set must be aDigitalNetor anIllegalArgumentExceptionis thrown.
-
-
Constructor Summary
Constructors Constructor and Description SMScrambleShift()Empty constructor.SMScrambleShift(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 callsstripedMatrixScramble, thenaddRandomShift.-
Methods inherited from class umontreal.iro.lecuyer.hups.RandomShift
getStream, setStream
-
-
-
-
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 callsstripedMatrixScramble, 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