public class CachedPointSet extends PointSet
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
toString()
Formats a string that contains information about the point set.
|
addRandomShift, addRandomShift, addRandomShift, addRandomShift, clearRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, iterator, randomize, randomize, randomize, randomize, setStream, unrandomizepublic 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 cachedpublic void randomize(PointSetRandomization rand)
randomize in class PointSetrand - PointSetRandomization to usepublic java.lang.String toString()
PointSetpublic double getCoordinate(int i,
int j)
PointSetgetCoordinate in class PointSeti - index of the point to look forj - index of the coordinate to look forTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.