25package umontreal.ssj.hups;
27import umontreal.ssj.util.PrintfFormat;
28import umontreal.ssj.rng.RandomStream;
82 return P.getDimension();
91 return P.getNumPoints();
101 return P.getCoordinate(i, j);
131 P.addRandomShift(d1, d2, stream);
140 P.addRandomShift(stream);
147 P.clearRandomShift();
160 innerIterator.setCurCoordIndex(j);
164 innerIterator.resetCurCoordIndex();
168 return innerIterator.hasNextCoordinate();
172 return innerIterator.nextCoordinate();
176 innerIterator.setCurPointIndex(i);
180 innerIterator.resetCurPointIndex();
184 return innerIterator.resetToNextPoint();
188 return innerIterator.hasNextPoint();
int resetToNextPoint()
Resets the current point index to the next one and current coordinate to 0, and returns the new curre...
void resetCurCoordIndex()
Set current coordinate to 0.
void setCurCoordIndex(int j)
Set current coordinate to j.
void resetCurPointIndex()
Resets both the current point index and the current coordinate to 0.
void setCurPointIndex(int i)
Resets the current point index to i and current coordinate to 0.
boolean hasNextCoordinate()
This acts as a generic base class for all container classes that contain a point set and apply a spec...
void addRandomShift(RandomStream stream)
Calls addRandomShift(stream) of the contained point set.
String toString()
Formats a string that contains information about the point set.
PointSetIterator iterator()
Return an iterator for this ContainerPointSet.
int getNumPoints()
Returns the number of points in the contained point set.
void addRandomShift(int d1, int d2, RandomStream stream)
Calls addRandomShift(d1, d2, stream) of the contained point set.
int getDimension()
Returns the dimension of the contained point set.
PointSet getOriginalPointSet()
Returns the (untransformed) point set contained in this container.
void init(PointSet p0)
Initializes this container point set so that it will contain the point set p0.
double getCoordinate(int i, int j)
By default, returns the untransformed coordinate for the contained point set.
void randomize(PointSetRandomization rand)
Randomizes the contained point set using rand.
void clearRandomShift()
Calls clearRandomShift() of the contained point set.
This class implements a default point set iterator.
This abstract class represents a general point set.
This is the interface for iterators that permit one to go through the points of a PointSet and the su...
This interface is for a randomization that can be used to randomize a umontreal.ssj....
void randomize(PointSet p)
This method must randomize p.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...