25package umontreal.ssj.hups;
70 throw new IllegalArgumentException(
"KorobovLatticeSequence: Multiplier a must be >= 1");
74 throw new UnsupportedOperationException(
"NOT FINISHED");
84 return radicalInverse(base, i);
88 for (inverse = 0; i > 0; i /= base) {
89 inverse = inverse * base + (i % base);
92 return (
double) ((inverse * modPower(genA, j, n)) % n) / (
double) n;
97 private void integerRadicalInverse(
int i) {
100 for (inverse = 0; i > 0; i /= base) {
101 inverse = inverse * base + (i % base);
double getCoordinate(int i, int j)
Returns , the coordinate of the point .
KorobovLatticeSequence(int b, int a)
Constructs a new lattice sequence with base b and generator .
KorobovLattice(int n, int a, int s)
Instantiates a Korobov lattice point set with modulus and multiplier in dimension .