|
SSJ V. 1.2.5. |
||||||||
| 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.HaltonSequence
public class HaltonSequence
This class implements the sequence of Halton, which is essentially a modification of Hammersley nets for producing an infinite sequence of points having low discrepancy. The ith point in s dimensions is
i = (ψb1(i), ψb2(i),..., ψbs(i)),
RadicalInverse, and where
2 = b1 < ... < bs are the s smallest prime numbers in
increasing order.
A fast method is implemented to generate randomized Halton sequences, starting from an arbitrary points x0.
The points can be ``scrambled'' by applying a permutation to the
digits of i before computing each coordinate, in the same way as for the class
HammersleyPointSet, for all coordinates j >= 0.
| Constructor Summary | |
|---|---|
HaltonSequence(int dim)
Constructs a new Halton sequence 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. |
int |
getNumPoints()
Returns the number of points. |
void |
init(double[] x0)
Initializes the Halton sequence starting at point x0. |
| Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
|---|
addRandomShift, addRandomShift, addRandomShift, addRandomShift, clearRandomShift, formatPoints, formatPoints, getDimension, iterator, randomize, randomize, randomize, randomize, toString, unrandomize |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HaltonSequence(int dim)
dim - dimension| Method Detail |
|---|
public void init(double[] x0)
x0 - starting point of the Halton sequencepublic void addFaurePermutations()
public void ErasePermutations()
public int getNumPoints()
PointSet
getNumPoints in class PointSet
public double getCoordinate(int i,
int j)
PointSet
getCoordinate in class PointSeti - index of the point to look forj - index of the coordinate to look for
|
SSJ V. 1.2.5. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||