public class RandShiftedPointSet extends ContainerPointSet
addRandomShift, a new random shift will be generated.
This shift is represented by a vector of d uniforms over (0, 1),
where d is the current dimension of the shift.| Constructor and Description |
|---|
RandShiftedPointSet(PointSet P,
int dimShift,
RandomStream stream)
Constructs a structure to contain a randomly shifted version of P.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRandomShift()
Deprecated.
|
void |
addRandomShift(int d1,
int d2)
Deprecated.
|
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
Changes the stream used for the random shifts to stream, then
refreshes the shift for coordinates d1 to d2-1.
|
void |
addRandomShift(RandomStream stream)
Changes the stream used for the random shifts to stream, then
refreshes all coordinates of the random shift, up to its current dimension.
|
int |
getShiftDimension()
Returns the number of dimensions of the current random shift.
|
PointSetIterator |
iterator()
Constructs and returns a point set iterator.
|
java.lang.String |
toString()
Formats a string that contains information about the point set.
|
clearRandomShift, getCoordinate, getDimension, getNumPoints, randomizeformatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getStream, randomize, randomize, randomize, randomize, setStream, unrandomizepublic RandShiftedPointSet(PointSet P, int dimShift, RandomStream stream)
P - point set being randomizeddimShift - dimension of the initial shiftstream - stream used for generating random shiftspublic int getShiftDimension()
public void addRandomShift(int d1,
int d2,
RandomStream stream)
addRandomShift in class ContainerPointSetd1 - lower dimension of the random shiftd2 - upper dimension of the random shiftstream - the random streampublic void addRandomShift(RandomStream stream)
addRandomShift in class ContainerPointSetstream - the random stream@Deprecated
public void addRandomShift(int d1,
int d2)
addRandomShift in class PointSet@Deprecated public void addRandomShift()
addRandomShift in class PointSetpublic java.lang.String toString()
PointSettoString in class ContainerPointSetpublic PointSetIterator iterator()
PointSetgetCoordinate (i,j) to iterate over the
points and coordinates, but subclasses can reimplement it
for better efficiency.iterator in class ContainerPointSetTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.