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 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.
SMScrambleShift
public SMScrambleShift(RandomStream stream)
- Sets internal variable stream to the given
stream.
- Parameters:
stream
- stream to use in the randomization
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
To submit a bug or ask questions, send an e-mail to
Pierre L'Ecuyer.