|
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.AntitheticPointSet
public class AntitheticPointSet
This container class provides antithetic points.
That is,
1 - ui, j is returned in place of coordinate ui, j.
To generate regular and antithetic variates with a point
set p, e.g., for variance reduction, one can define an
AntitheticPointSet object pa that contains p,
and then generate the regular variates with p and the
antithetic variates with pa.
| Constructor Summary | |
|---|---|
AntitheticPointSet(PointSet P)
Constructs an antithetic point set from the given point set P. |
|
| Method Summary | |
|---|---|
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. |
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.ContainerPointSet |
|---|
addRandomShift, addRandomShift, addRandomShift, addRandomShift, clearRandomShift, getDimension, getNumPoints |
| 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 AntitheticPointSet(PointSet P)
P - point set for which we want antithetic version| Method Detail |
|---|
public double getCoordinate(int i,
int j)
PointSet
getCoordinate in class ContainerPointSeti - index of the point to look forj - index of the coordinate to look for
public PointSetIterator iterator()
PointSetgetCoordinate (i,j) to iterate over the
points and coordinates, but subclasses can reimplement it
for better efficiency.
iterator in class ContainerPointSetpublic String toString()
PointSet
toString in class ContainerPointSetpublic String formatPoints()
PointSetformatPoints with n and d equal to the
number of points and the dimension, respectively.
formatPoints in class ContainerPointSet
|
SSJ V. 1.2.5. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||