25package umontreal.ssj.discrepancy;
27import umontreal.ssj.hups.PointSet;
42 protected BigDecimal[] C1Big;
43 protected BigDecimal[] C2Big;
44 protected BigDecimal[] C3Big;
45 protected BigDecimal[] UBig;
46 protected BigDecimal[][] FactorBig;
48 protected void reserveCBig(
int s) {
50 C1Big =
new BigDecimal[s];
51 C2Big =
new BigDecimal[s];
52 C3Big =
new BigDecimal[s];
54 for (
int i = 0; i < s; i++) {
55 C1Big[i] =
new BigDecimal(0);
56 C2Big[i] =
new BigDecimal(0);
57 C3Big[i] =
new BigDecimal(0);
61 protected void reserveFactorBig(
int n,
int s) {
63 FactorBig =
new BigDecimal[n][s];
64 for (
int i = 0; i < n; i++) {
65 FactorBig[i] =
new BigDecimal[s];
66 for (
int j = 0; j < s; j++)
67 FactorBig[i][j] =
new BigDecimal(0);
71 protected void setUBig(
int n) {
73 UBig =
new BigDecimal[n];
74 BigDecimal Ninv =
new BigDecimal(1);
75 Ninv = Ninv.divide(
new BigDecimal(n), MathContext.DECIMAL128);
77 for (
int i = 0; i < n; i++) {
78 UBig[i] =
new BigDecimal(i);
79 UBig[i] = UBig[i].multiply(Ninv);
100 super(points, n, s, gamma);
BigDiscrepancy()
Empty constructor.
BigDiscrepancy(double[][] points, int n, int s, double[] gamma)
Constructor with the points points[i] in dimensions with weight factors gamma.
BigDiscrepancy(int n, int s, double[] gamma)
The number of points is , the dimension , and the.
BigDiscrepancy(PointSet set)
Constructor with the point set set.
BigDiscrepancy(double[][] points, int n, int s)
Constructor with the points points[i] in dimensions.
Discrepancy(double[][] points, int n, int s)
Constructor with the points points[i] in dimensions.
This abstract class represents a general point set.