umontreal.iro.lecuyer.hups
Class AntitheticPointSet
- java.lang.Object
-
- umontreal.iro.lecuyer.hups.PointSet
-
- umontreal.iro.lecuyer.hups.ContainerPointSet
-
- umontreal.iro.lecuyer.hups.AntitheticPointSet
-
public class AntitheticPointSet extends ContainerPointSet
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 anAntitheticPointSetobject pa that contains p, and then generate the regular variates with p and the antithetic variates with pa.
-
-
Constructor Summary
Constructors Constructor and Description AntitheticPointSet(PointSet P)Constructs an antithetic point set from the given point set P.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetCoordinate(int i, int j)Returns ui, j, the coordinate j of the point i.PointSetIteratoriterator()Constructs and returns a point set iterator.java.lang.StringtoString()Formats a string that contains information about the point set.-
Methods inherited from class umontreal.iro.lecuyer.hups.ContainerPointSet
addRandomShift, addRandomShift, clearRandomShift, getDimension, getNumPoints, getOriginalPointSet, randomize
-
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
-
-
-
-
Constructor Detail
-
AntitheticPointSet
public AntitheticPointSet(PointSet P)
Constructs an antithetic point set from the given point set P.- Parameters:
P- point set for which we want antithetic version
-
-
Method Detail
-
getCoordinate
public double getCoordinate(int i, int j)Description copied from class:PointSetReturns ui, j, the coordinate j of the point i.- Overrides:
getCoordinatein classContainerPointSet- Parameters:
i- index of the point to look forj- index of the coordinate to look for- Returns:
- the value of ui, j
-
iterator
public PointSetIterator iterator()
Description copied from class:PointSetConstructs and returns a point set iterator. The default implementation returns an iterator that uses the methodgetCoordinate(i,j) to iterate over the points and coordinates, but subclasses can reimplement it for better efficiency.- Overrides:
iteratorin classContainerPointSet- Returns:
- point set iterator for the point set
-
toString
public java.lang.String toString()
Description copied from class:PointSetFormats a string that contains information about the point set.- Overrides:
toStringin classContainerPointSet- Returns:
- string representation of the point set information
-
-
DMelt 3.0 © DataMelt by jWork.ORG