|
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
public abstract class ContainerPointSet
This acts as a generic base class for all container
classes that contain a point set and apply some kind of
transformation to the coordinates to define a new point set.
One example of such transformation is the antithetic map,
applied by the container class AntitheticPointSet
,
where each output coordinate ui, j is transformed into 1 - ui, j.
Another example is RandShiftedPointSet
.
The class implements a specialized type of iterator for container point sets. This type of iterator contains itself an iterator for the containee and uses it to access the points and coordinates internally, instead of maintaining itself indices for the current point and current coordinate.
Constructor Summary | |
---|---|
ContainerPointSet()
|
Method Summary | |
---|---|
void |
addRandomShift()
|
void |
addRandomShift(int d1,
int d2)
Deprecated: Similar to addRandomShift (d1, d2, stream), with the current random stream. |
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
This method does nothing for this generic class. |
void |
addRandomShift(RandomStream stream)
Similar to addRandomShift (0, d2, stream), with d2 the dimension of the current random shift. |
void |
clearRandomShift()
Erases the current random shift, if any. |
String |
formatPoints()
Same as invoking formatPoints with n and d equal to the
number of points and the dimension, respectively. |
double |
getCoordinate(int i,
int j)
Returns ui, j, the coordinate j of the point i. |
int |
getDimension()
Returns the dimension (number of available coordinates) of the point set. |
int |
getNumPoints()
Returns the number of points. |
PointSetIterator |
iterator()
Constructs and returns a point set iterator. |
String |
toString()
Formats a string that contains the information about the point set. |
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 ContainerPointSet()
Method Detail |
---|
public int getDimension()
PointSet
getDimension
in class PointSet
public int getNumPoints()
PointSet
getNumPoints
in class PointSet
public double getCoordinate(int i, int j)
PointSet
getCoordinate
in class PointSet
i
- index of the point to look forj
- index of the coordinate to look for
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 PointSet
public void addRandomShift(int d1, int d2, RandomStream stream)
PointSet
addRandomShift
in class PointSet
public void addRandomShift(int d1, int d2)
PointSet
addRandomShift
in class PointSet
public void addRandomShift(RandomStream stream)
PointSet
addRandomShift
in class PointSet
public void addRandomShift()
addRandomShift
in class PointSet
public void clearRandomShift()
PointSet
clearRandomShift
in class PointSet
public String toString()
PointSet
toString
in class PointSet
public String formatPoints()
PointSet
formatPoints
with n and d equal to the
number of points and the dimension, respectively.
formatPoints
in class PointSet
|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |