|
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.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 contained point set 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(int d1,
int d2,
RandomStream stream)
Calls addRandomShift(d1, d2, stream) of the contained point set. |
void |
addRandomShift(RandomStream stream)
Calls addRandomShift(stream) of the contained point set. |
void |
clearRandomShift()
Calls clearRandomShift() of the contained point set. |
double |
getCoordinate(int i,
int j)
Returns ui, j, the coordinate j of the point i. |
int |
getDimension()
Returns the dimension of the contained point set. |
int |
getNumPoints()
Returns the number of points of the contained point set. |
PointSet |
getOriginalPointSet()
Returns the (untransformed) point set inside this container. |
PointSetIterator |
iterator()
Constructs and returns a point set iterator. |
void |
randomize(PointSetRandomization rand)
Randomizes the contained point set using rand. |
String |
toString()
Formats a string that contains information about the point set. |
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
---|
addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getStream, randomize, randomize, randomize, randomize, setStream, unrandomize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContainerPointSet()
Method Detail |
---|
public PointSet getOriginalPointSet()
public int getDimension()
getDimension
in class PointSet
public int getNumPoints()
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 randomize(PointSetRandomization rand)
randomize
in class PointSet
rand
- PointSetRandomization
to usepublic void addRandomShift(int d1, int d2, RandomStream stream)
addRandomShift
in class PointSet
d1
- lower dimension of the random shiftd2
- upper dimension of the random shiftstream
- the random streampublic void addRandomShift(RandomStream stream)
addRandomShift
in class PointSet
stream
- the random streampublic void clearRandomShift()
clearRandomShift
in class PointSet
public String toString()
PointSet
toString
in class PointSet
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |