|
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.CycleBasedPointSet
public abstract class CycleBasedPointSet
This abstract class provides the basic structures for storing and manipulating a highly uniform point set defined by a set of cycles. The s-dimensional points are all the vectors of s successive values found in any of the cycles, from any starting point. Since this is defined for any positive integer s, the points effectively have an infinite number of dimensions. The number of points, n, is the sum of lengths of all the cycles. The cycles of the point set are simply stored as a list of arrays, where each array contains the successive values for a given cycle. By default, the values are stored in double.
This structure is convenient for implementing recurrence-based point sets, where the point set in s dimensions is defined as the set of all vectors of s successive values of a periodic recurrence, from all its possible initial states.
Nested Class Summary | |
---|---|
class |
CycleBasedPointSet.CycleBasedPointSetIterator
|
Constructor Summary | |
---|---|
CycleBasedPointSet()
|
Method Summary | |
---|---|
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
Adds a random shift to all the points of the point set, using stream stream to generate the random numbers, for coordinates d1 to d2 - 1. |
void |
clearRandomShift()
. |
String |
formatPoints()
. |
double |
getCoordinate(int i,
int j)
. |
int |
getDimension()
. |
PointSetIterator |
iterator()
. |
String |
toString()
. |
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
---|
addRandomShift, addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getNumPoints, getStream, randomize, randomize, randomize, randomize, randomize, setStream, unrandomize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CycleBasedPointSet()
Method Detail |
---|
public double getCoordinate(int i, int j)
PointSet
getCoordinate
in class PointSet
public void addRandomShift(int d1, int d2, RandomStream stream)
addRandomShift
in class PointSet
stream
- Stream used to generate random numberspublic void clearRandomShift()
PointSet
clearRandomShift
in class PointSet
public int getDimension()
PointSet
getDimension
in class PointSet
public PointSetIterator iterator()
PointSet
iterator
in class PointSet
public String toString()
PointSet
toString
in class PointSet
public String formatPoints()
PointSet
formatPoints
in class PointSet
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |