|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.hups.RandomStart
public class RandomStart
This class implements a
PointSetRandomization
that randomizes a sequence with a random starting point.
The point set must be an instance of
HaltonSequence
or an
IllegalArgumentException
is thrown.
For now, only the Halton sequence is allowed, but there may be others
later.
Constructor Summary | |
---|---|
RandomStart()
Empty constructor. |
|
RandomStart(RandomStream stream)
Sets internal variable stream to the given stream. |
Method Summary | |
---|---|
RandomStream |
getStream()
Returns the internal RandomStream . |
void |
randomize(PointSet p)
This method calls init . |
void |
setStream(RandomStream stream)
Sets the internal RandomStream to
stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomStart()
public RandomStart(RandomStream stream)
stream
- stream to use in the randomizationMethod Detail |
---|
public void randomize(PointSet p)
init
.
If p is not a
HaltonSequence
, an
IllegalArgumentException
is thrown.
randomize
in interface PointSetRandomization
p
- Point set to randomizepublic void setStream(RandomStream stream)
RandomStream
to
stream.
setStream
in interface PointSetRandomization
stream
- stream to use in the randomizationpublic RandomStream getStream()
RandomStream
.
getStream
in interface PointSetRandomization
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |