| 
 | SSJ V. 2.6. | ||||||||
| 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.CachedPointSet
public class CachedPointSet
This container class caches a point set by precomputing and storing its points locally in an array. This can be used to speed up computations when using a small low-dimensional point set more than once.
| Constructor Summary | |
|---|---|
| CachedPointSet(PointSet P)Creates a new PointSet object that contains an array storing the points of P. | |
| CachedPointSet(PointSet P,
               int n,
               int dim)Creates a new PointSet object that contains an array storing the first dim coordinates of the first n points of P. | |
| Method Summary | |
|---|---|
|  void | addRandomShift(int d1,
               int d2,
               RandomStream stream)Add the shift to the contained point set and recaches the points. | 
|  double | getCoordinate(int i,
              int j)Returns ui, j, the coordinate j of the point i. | 
|  void | randomize(PointSetRandomization rand)Randomizes the underlying point set using rand and recaches the points. | 
|  String | toString()Formats a string that contains information about the point set. | 
| Methods inherited from class umontreal.iro.lecuyer.hups.PointSet | 
|---|
| addRandomShift, addRandomShift, addRandomShift, clearRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, iterator, randomize, randomize, randomize, randomize, setStream, unrandomize | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public CachedPointSet(PointSet P,
                      int n,
                      int dim)
P - point set to be cachedn - number of pointsdim - number of dimensions of the pointspublic CachedPointSet(PointSet P)
P - point set to be cached| Method Detail | 
|---|
public void addRandomShift(int d1,
                           int d2,
                           RandomStream stream)
addRandomShift(d1, d2, stream) in PointSet.
addRandomShift in class PointSetpublic void randomize(PointSetRandomization rand)
randomize in class PointSetrand - PointSetRandomization to usepublic String toString()
PointSet
toString in class PointSet
public double getCoordinate(int i,
                            int j)
PointSet
getCoordinate in class PointSeti - index of the point to look forj - index of the coordinate to look for
| 
 | SSJ V. 2.6. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||