|
SSJ V. labo. |
||||||||
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
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. Some types of point sets are also implemented directly as subclasses of this one, without having a contained point set P.
There are sort methods available to sort the cached points and stripCoordinates methods that remove certain coordinates of the points. Those methods affect only the array where the points are cached; they have no impact on the (underlying) original point set.
Constructor Summary | |
---|---|
CachedPointSet(PointSet P)
. |
|
CachedPointSet(PointSet P,
int n,
int dim)
. |
|
CachedPointSet(PointSet P,
int fromPoint,
int toPoint,
int fromDim,
int toDim)
. |
Method Summary | |
---|---|
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
. |
double |
getCoordinate(int i,
int j)
. |
void |
randomize(PointSetRandomization rand)
. |
void |
sortByCoordinate(int j)
. |
void |
sortMultidimBatch(int[] numBatches,
int d)
. |
void |
sortMultidimBatchSplit(int numBatches,
int d)
. |
void |
stripCoordinates(int d)
. |
String |
toString()
. |
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 fromPoint, int toPoint, int fromDim, int toDim)
public CachedPointSet(PointSet P, int n, int dim)
public CachedPointSet(PointSet P)
Method Detail |
---|
public void addRandomShift(int d1, int d2, RandomStream stream)
addRandomShift
in class PointSet
public void randomize(PointSetRandomization rand)
randomize
in class PointSet
public void sortByCoordinate(int j)
public void sortMultidimBatch(int[] numBatches, int d)
public void sortMultidimBatchSplit(int numBatches, int d)
public void stripCoordinates(int d)
public String toString()
PointSet
toString
in class PointSet
public double getCoordinate(int i, int j)
PointSet
getCoordinate
in class PointSet
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |