25package umontreal.ssj.discrepancy;
27import umontreal.ssj.hups.Rank1Lattice;
71 super(points, n, s, gamma);
104 public double compute(
double[][] points,
int n,
int s) {
106 return compute(points, n, s, ONES);
114 public double compute(
double[][] points,
int n,
int s,
double[] gamma) {
115 double[] C1 =
new double[s];
119 for (
int i = 0; i < n; ++i) {
121 for (
int r = 0; r < s; ++r) {
122 double u = points[i][r];
123 double pol1 = u * (u - 1.0) + UNSIX;
124 prod *= 1.0 + C1[r] * pol1;
129 double disc = sum / n - 1.0;
132 return Math.sqrt(disc);
142 for (
int i = 0; i < n; ++i) {
144 double pol1 = h * (h - 1.0) + UNSIX;
148 double disc = sum / n;
151 return Math.sqrt(disc);
DiscShift1Lattice(int n, int s, double[] gamma)
The number of points is , the dimension , and the.
DiscShift1Lattice(double[][] points, int n, int s, double[] gamma)
Constructor with the points points[i] in dimensions with the weights gamma[r-1],...
double compute(double[][] points, int n, int s)
Computes the discrepancy ( shift1lat ) for the -dimensional points of lattice points,...
DiscShift1Lattice(double[][] points, int n, int s)
Constructor with the points points[i] in dimensions with all weights .
DiscShift1Lattice()
Empty constructor.
double compute(double[] T, int n)
Computes the discrepancy ( shift1dim1lat ) for the 1-dimensional lattice of points .
DiscShift1Lattice(Rank1Lattice set)
Constructor with the lattice set.
double compute(double[][] points, int n, int s, double[] gamma)
Computes the discrepancy ( shift1lat ) for the -dimensional points of lattice points,...
DiscShift1(double[][] points, int n, int s)
Constructor with the points points[i] in dimensions and with all weights .
double compute()
Computes the discrepancy of all the points in maximal dimension (dimension of the points).
This class implements point sets specified by integration lattices of rank 1.