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 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.
LMScrambleShift
public LMScrambleShift(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
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
To submit a bug or ask questions, send an e-mail to
Pierre L'Ecuyer.