|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.hups.PointSet
umontreal.iro.lecuyer.hups.ContainerPointSet
umontreal.iro.lecuyer.hups.RandShiftedPointSet
public class RandShiftedPointSet
This container class embodies a point set to which a random shift modulo 1 is applied (i.e., a single uniform random point is added to all points, modulo 1, to randomize the inner point set).
When calling addRandomShift
, a new random shift will be generated.
This shift is represented by a vector of d uniforms over (0, 1),
where d is the current dimension of the shift.
Constructor Summary | |
---|---|
RandShiftedPointSet(PointSet P,
int dimShift,
RandomStream stream)
Constructs a structure to contain a randomly shifted version of P. |
Method Summary | |
---|---|
void |
addRandomShift()
Refreshes all coordinates of the random shift, up to its current dimension. |
void |
addRandomShift(int d1,
int d2)
Refreshes the random shift (generates new uniform values for the random shift coordinates) for coordinates d1 to d2-1. |
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
Changes the stream used for the random shifts to stream, then refreshes the shift for coordinates d1 to d2-1. |
void |
addRandomShift(RandomStream stream)
Changes the stream used for the random shifts to stream, then refreshes all coordinates of the random shift, up to its current dimension. |
int |
getShiftDimension()
Returns the number of dimensions of the current random shift. |
PointSetIterator |
iterator()
Constructs and returns a point set iterator. |
Methods inherited from class umontreal.iro.lecuyer.hups.ContainerPointSet |
---|
clearRandomShift, formatPoints, getCoordinate, getDimension, getNumPoints, toString |
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
---|
formatPoints, randomize, randomize, randomize, randomize, unrandomize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandShiftedPointSet(PointSet P, int dimShift, RandomStream stream)
P
- point set being randomizeddimShift
- dimension of the initial shiftstream
- stream used for generating random shiftsMethod Detail |
---|
public int getShiftDimension()
public void addRandomShift(int d1, int d2, RandomStream stream)
addRandomShift
in class ContainerPointSet
public void addRandomShift(RandomStream stream)
addRandomShift
in class ContainerPointSet
public void addRandomShift(int d1, int d2)
addRandomShift
in class ContainerPointSet
public void addRandomShift()
addRandomShift
in class ContainerPointSet
public PointSetIterator iterator()
PointSet
getCoordinate
(i,j) to iterate over the
points and coordinates, but subclasses can reimplement it
for better efficiency.
iterator
in class ContainerPointSet
|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |