public class Rank1Lattice extends PointSet
| Constructor and Description |
|---|
Rank1Lattice(int n,
int[] a,
int s)
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
clearRandomShift()
Clears the random shift.
|
int[] |
getAs()
Returns the generator aj of the lattice.
|
double |
getCoordinate(int i,
int j)
Returns ui, j, the coordinate j of the point i.
|
PointSetIterator |
iterator()
Constructs and returns a point set iterator.
|
java.lang.String |
toString()
Formats a string that contains information about the point set.
|
addRandomShift, addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, randomize, randomize, randomize, randomize, randomize, setStream, unrandomizepublic Rank1Lattice(int n,
int[] a,
int s)
n - there are n pointsa - the lattice vectors - dimension of the lattice vector apublic int[] getAs()
public void addRandomShift(int d1,
int d2,
RandomStream stream)
addRandomShift in class PointSetd1 - lower dimension of shiftd2 - upper dimension of shift is d2 - 1stream - random number stream used to generate uniformspublic void clearRandomShift()
clearRandomShift in class PointSetpublic 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 forpublic PointSetIterator iterator()
PointSetgetCoordinate (i,j) to iterate over the
points and coordinates, but subclasses can reimplement it
for better efficiency.To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.