|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.hups.PointSet umontreal.iro.lecuyer.hups.HammersleyPointSet
public class HammersleyPointSet
This class implements Hammersley point sets, which are defined as follows. Let 2 = b1 < b2 < ... denote the sequence of all prime numbers by increasing order. The Hammersley point set with n points in s dimensions contains the points
RadicalInverse
.
This class is not a subclass of DigitalNet
, because the basis
is not the same for all coordinates.
We do obtain a net in a generalized sense if
n = b1k1 = b2k2 = ... = bs-1ks-1
for some integers
k1,..., ks-1.
The points of a Hammersley point set can be ``scrambled'' by applying a permutation to the digits of i before computing each coordinate. If
Constructor Summary | |
---|---|
HammersleyPointSet(int n,
int dim)
Constructs a new Hammersley point set with n points in dim dimensions. |
Method Summary | |
---|---|
void |
addFaurePermutations()
Permutes the digits using Faure permutations for all coordinates. |
void |
ErasePermutations()
Erases the Faure permutations: from now on, the digits will not be Faure permuted. |
double |
getCoordinate(int i,
int j)
Returns ui, j, the coordinate j of the point i. |
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
---|
addRandomShift, addRandomShift, addRandomShift, addRandomShift, clearRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, iterator, randomize, randomize, randomize, randomize, randomize, setStream, toString, unrandomize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HammersleyPointSet(int n, int dim)
n
- number of pointsdim
- dimension of the point setMethod Detail |
---|
public void addFaurePermutations()
public void ErasePermutations()
public double getCoordinate(int i, int j)
PointSet
getCoordinate
in class PointSet
i
- index of the point to look forj
- index of the coordinate to look for
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |