|
SSJ V. 2.6.2. |
||||||||
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.PaddedPointSet
public class PaddedPointSet
This container class realizes padded point sets, constructed
by taking some coordinates from a point set P1, other coordinates
from a point set P2, and so on.
This can be used to implement latin supercube sampling, for example.
After calling the constructor to create the structure, component
point sets can be padded to it by calling padPointSet
or
padPointSetPermute
.
Only sets with the same number of points can be padded.
Point sets with too many points or coordinates can be trimmed down
by using the class SubsetOfPointSet
before they are padded.
Infinite-dimensional point sets are allowed, but once one is padded,
no additional point set can be padded.
The points of each padded set can be permuted randomly,
independently across the padded sets.
If such a random permutation is desired, the point set should be
padded via padPointSetPermute
.
When calling randomize
, random permutations are generated for
all point sets that have been padded by padPointSetPermute
.
Constructor Summary | |
---|---|
PaddedPointSet(int maxPointSets)
Constructs a structure for padding at most maxPointSets point sets. |
Method Summary | |
---|---|
double |
getCoordinate(int i,
int j)
Returns ui, j, the coordinate j of the point i. |
PointSetIterator |
iterator()
Constructs and returns a point set iterator. |
void |
padPointSet(PointSet P)
Pads the point set P to the present structure. |
void |
padPointSetPermute(PointSet P)
Pads the point set P, which is assumed to be finite. |
void |
randomize(RandomStream stream)
By default, this method simply calls addRandomShift(stream). |
String |
toString()
Formats a string that contains information about the point set. |
void |
unrandomize()
By default, this method simply calls clearRandomShift(). |
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
---|
addRandomShift, addRandomShift, addRandomShift, addRandomShift, clearRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, randomize, randomize, randomize, randomize, setStream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PaddedPointSet(int maxPointSets)
maxPointSets
- maximum number of point sets authorized
by the constructed objectMethod Detail |
---|
public void padPointSet(PointSet P)
P
- point set being paddedpublic void padPointSetPermute(PointSet P)
randomize
) and used to access the
coordinates taken from the points of P (i.e., these points
are randomly permuted).
P
- point set being paddedpublic 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 void unrandomize()
PointSet
unrandomize
in class PointSet
public void randomize(RandomStream stream)
PointSet
randomize
in class PointSet
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 String toString()
PointSet
toString
in class PointSet
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |