25package umontreal.ssj.discrepancy;
27import umontreal.ssj.hups.PointSet;
28import umontreal.ssj.util.Num;
44 static final BigDecimal BIG4s3 =
new BigDecimal(
"1.3333333333333333333333333333333333");
45 static final BigDecimal BIG1s9 =
new BigDecimal(
"0.1111111111111111111111111111111111");
46 static final BigDecimal BIG16s45 =
new BigDecimal(
"0.35555555555555555555555555555555556");
48 protected void setCBig(
double[] gam,
int s) {
49 for (
int i = 0; i < s; i++) {
50 BigDecimal v =
new BigDecimal(gam[i]);
52 C1Big[i] = v.multiply(BIG4s3);
54 C2Big[i] = v.multiply(BIG1s9);
55 C3Big[i] = v.multiply(BIG16s45);
74 super(points, n, s, gamma);
104 public double compute(
double[][] points,
int n,
int s) {
106 return compute(points, n, s, ONES);
112 public double compute(
double[][] points,
int n,
int s,
double[] gamma) {
113 throw new UnsupportedOperationException(
"method NOT IMPLEMENTED");
double compute(double[][] points, int n, int s)
NOT IMPLEMENTED.
BigDiscShiftBaker1()
Empty constructor.
double compute(double[][] points, int n, int s, double[] gamma)
NOT IMPLEMENTED.
BigDiscShiftBaker1(PointSet set)
Constructor with the point set set.
BigDiscShiftBaker1(double[][] points, int n, int s)
Constructor with the points points[i] in dimensions, with all the weights .
BigDiscShiftBaker1(double[][] points, int n, int s, double[] gamma)
Constructor with the points points[i] in dimensions, with weights gamma[r-1].
BigDiscShiftBaker1(int n, int s, double[] gamma)
Constructor for a lattice of points in dimensions, with weights gamma[r-1], .
BigDiscrepancy(double[][] points, int n, int s)
Constructor with the points points[i] in dimensions.
double compute()
Computes the discrepancy of all the points in maximal dimension (dimension of the points).
This abstract class represents a general point set.