25package umontreal.ssj.hups;
66 private int[][] permutation;
67 private boolean permuted;
77 throw new IllegalArgumentException(
"Hammersley point sets must have positive dimension and n >= 0");
93 permutation =
new int[
dim][];
94 for (
int i = 0; i <
dim - 1; i++) {
95 permutation[i] =
new int[base[i]];
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.
HammersleyPointSet(int n, int dim)
Constructs a new Hammersley point set with n points in dim dimensions.
double getCoordinate(int i, int j)
Returns , the coordinate of the point .
This abstract class represents a general point set.
int numPoints
Number of points.
int dim
Dimension of the points.
This class implements basic methods for working with radical inverses of integers in an arbitrary bas...
static double permutedRadicalInverse(int b, int[] pi, long i)
Computes the radical inverse of in base , where the digits are permuted using the permutation .
static double radicalInverse(int b, long i)
Computes the radical inverse of in base .
static void getFaurePermutation(int b, int[] pi)
Computes the Faure permutation rfau92a of the set and puts it in array pi.
static int[] getPrimes(int n)
Provides an elementary method for obtaining the first prime numbers larger than 1.