|
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.ContainerPointSet
umontreal.iro.lecuyer.hups.RandShiftedPointSet
public class RandShiftedPointSet
RandShiftedPointSet
Cette classe reprogramme un addRandomShift explicitement sur l'ensemble P, alors que le ContainerPointSet applique le addRandomShift sur le contenu P, ce qui est beaucoup plus propre et plus général. Faut-il éliminer cette classe? Est-elle vraiment nécessaire? This container class embodies a point set to which a random shift modulo 1 is applied (i.e., a single uniform random point is added to all points, modulo 1, to randomize the inner point set). When calling 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 Summary | |
---|---|
RandShiftedPointSet(PointSet P,
int dimShift,
RandomStream stream)
. |
Method Summary | |
---|---|
void |
addRandomShift()
Deprecated. |
void |
addRandomShift(int d1,
int d2)
Deprecated. |
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
. |
void |
addRandomShift(RandomStream stream)
. |
int |
getShiftDimension()
. |
PointSetIterator |
iterator()
. |
String |
toString()
. |
Methods inherited from class umontreal.iro.lecuyer.hups.ContainerPointSet |
---|
clearRandomShift, getCoordinate, getDimension, getNumPoints, getOriginalPointSet, randomize |
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
---|
formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getStream, randomize, randomize, randomize, randomize, setStream, unrandomize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RandShiftedPointSet(PointSet P, int dimShift, RandomStream stream)
Method Detail |
---|
public int getShiftDimension()
public void addRandomShift(int d1, int d2, RandomStream stream)
addRandomShift
in class ContainerPointSet
d1
- lower dimension of the random shiftd2
- upper dimension of the random shiftstream
- the random streampublic void addRandomShift(RandomStream stream)
addRandomShift
in class ContainerPointSet
stream
- the random stream@Deprecated public void addRandomShift(int d1, int d2)
addRandomShift
in class PointSet
@Deprecated public void addRandomShift()
addRandomShift
in class PointSet
public String toString()
PointSet
toString
in class ContainerPointSet
public PointSetIterator iterator()
PointSet
iterator
in class ContainerPointSet
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |