public class RandomShift extends java.lang.Object implements PointSetRandomization
PointSetRandomization.
The RandomStream is
stored internally. The method randomize simply
calls
addRandomShift(stream).
This class can be used as a base class to implement a specific
randomization by overriding method randomize.
| Constructor and Description |
|---|
RandomShift(RandomStream stream)
Sets the internal
RandomStream to stream. |
| Modifier and Type | Method and Description |
|---|---|
RandomStream |
getStream()
Returns the internal
RandomStream. |
void |
randomize(PointSet p)
This method calls
addRandomShift (stream). |
void |
setStream(RandomStream stream)
Sets the internal
RandomStream to
stream. |
public RandomShift(RandomStream stream)
RandomStream to stream.stream - stream to use in the randomizationpublic void randomize(PointSet p)
addRandomShift (stream).randomize in interface PointSetRandomizationp - Point set to randomizepublic void setStream(RandomStream stream)
RandomStream to
stream.setStream in interface PointSetRandomizationstream - stream to use in the randomizationpublic RandomStream getStream()
RandomStream.getStream in interface PointSetRandomizationTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.