|
SSJ
3.3.1
Stochastic Simulation in Java
|
This class computes the same discrepancy as in umontreal.ssj.discrepancy.DiscShiftBaker1 [see eq. More...
Public Member Functions | |
| BigDiscShiftBaker1 (double[][] points, int n, int s) | |
Constructor with the \(n\) points points[i] in \(s\) dimensions, with all the weights \(\gamma_r = 1\). More... | |
| BigDiscShiftBaker1 (double[][] points, int n, int s, double[] gamma) | |
Constructor with the \(n\) points points[i] in \(s\) dimensions, with weights \(\gamma_r = \) gamma[r-1]. More... | |
| BigDiscShiftBaker1 (int n, int s, double[] gamma) | |
Constructor for a lattice of \(n\) points in \(s\) dimensions, with weights \(\gamma_r = \) gamma[r-1], \(r = 1,2, …, s\). More... | |
| BigDiscShiftBaker1 (PointSet set) | |
Constructor with the point set set. More... | |
| BigDiscShiftBaker1 () | |
| Empty constructor. More... | |
| double | compute (double[][] points, int n, int s) |
| NOT IMPLEMENTED. | |
| double | compute (double[][] points, int n, int s, double[] gamma) |
| NOT IMPLEMENTED. | |
Public Member Functions inherited from BigDiscrepancy | |
| BigDiscrepancy (double[][] points, int n, int s) | |
Constructor with the \(n\) points points[i] in \(s\) dimensions. More... | |
| BigDiscrepancy (double[][] points, int n, int s, double[] gamma) | |
Constructor with the \(n\) points points[i] in \(s\) dimensions with weight factors gamma. More... | |
| BigDiscrepancy (int n, int s, double[] gamma) | |
The number of points is \(n\), the dimension \(s\), and the \(s\) weight factors are gamma[ \(j\)], \(j = 0, 1, …, (s-1)\). More... | |
| BigDiscrepancy (PointSet set) | |
Constructor with the point set set. More... | |
| BigDiscrepancy () | |
| Empty constructor. More... | |
Public Member Functions inherited from Discrepancy | |
| Discrepancy (double[][] points, int n, int s) | |
Constructor with the \(n\) points points[i] in \(s\) dimensions. More... | |
| Discrepancy (double[][] points, int n, int s, double[] gamma) | |
Constructor with the \(n\) points points[i] in \(s\) dimensions and the \(s\) weight factors gamma[ \(j\)], \(j = 0, 1, …, (s-1)\). More... | |
| Discrepancy (int n, int s, double[] gamma) | |
The number of points is \(n\), the dimension \(s\), and the \(s\) weight factors are gamma[ \(j\)], \(j = 0, 1, …, (s-1)\). More... | |
| Discrepancy (PointSet set) | |
Constructor with the point set set. More... | |
| Discrepancy () | |
| Empty constructor. More... | |
| double | compute () |
| Computes the discrepancy of all the points in maximal dimension (dimension of the points). | |
| double | compute (int s) |
| Computes the discrepancy of all the points in dimension \(s\). | |
| double | compute (double[][] points, int n, int s, double[] gamma) |
Computes the discrepancy of the first n points of points in dimension s with weights gamma. | |
| abstract double | compute (double[][] points, int n, int s) |
Computes the discrepancy of the first n points of points in dimension s with weights \(=1\). | |
| double | compute (double[][] points) |
Computes the discrepancy of all the points of points in maximum dimension. More... | |
| double | compute (double[] T, int n) |
Computes the discrepancy of the first n points of T in 1 dimension. More... | |
| double | compute (double[] T) |
Computes the discrepancy of all the points of T in 1 dimension. More... | |
| double | compute (double[] T, int n, double gamma) |
Computes the discrepancy of the first n points of T in 1 dimension with weight gamma. | |
| double | compute (PointSet set, double[] gamma) |
Computes the discrepancy of all the points in set in the same dimension as the point set and with weights gamma. | |
| double | compute (PointSet set) |
Computes the discrepancy of all the points in set in the same dimension as the point set. More... | |
| int | getNumPoints () |
| Returns the number of points \(n\). | |
| int | getDimension () |
| Returns the dimension of the points \(s\). | |
| void | setPoints (double[][] points, int n, int s) |
Sets the points to points and the dimension to \(s\). More... | |
| void | setPoints (double[][] points) |
Sets the points to points. More... | |
| void | setGamma (double[] gam, int s) |
Sets the weight factors to gam for each dimension up to \(s\). | |
| double [] | getGamma () |
Returns the weight factors gamma for each dimension up to \(s\). | |
| String | toString () |
| Returns the parameters of this class. | |
| String | formatPoints () |
| Returns all the points of this class. | |
| String | getName () |
| Returns the name of the Discrepancy. | |
Protected Member Functions | |
| void | setCBig (double[] gam, int s) |
Protected Member Functions inherited from BigDiscrepancy | |
| void | reserveCBig (int s) |
| void | reserveFactorBig (int n, int s) |
| void | setUBig (int n) |
Protected Member Functions inherited from Discrepancy | |
| void | appendGamma (StringBuffer sb, double[] gamma, int s) |
Static Package Attributes | |
| static final BigDecimal | BIG4s3 |
| static final BigDecimal | BIG1s9 |
| static final BigDecimal | BIG16s45 |
Static Package Attributes inherited from Discrepancy | |
| static final double | UNSIX = 1.0/6.0 |
| static final double | QUARAN = 1.0/42.0 |
| static final double | UNTRENTE = 1.0 / 30.0 |
| static final double | DTIERS = 2.0 / 3.0 |
| static final double | STIERS = 7.0 / 3.0 |
| static final double | QTIERS = 14.0 / 3.0 |
Additional Inherited Members | |
Static Public Member Functions inherited from Discrepancy | |
| static double [][] | toArray (PointSet set) |
Returns all the \(n\) points ( \(s\)-dimensional) of umontreal.ssj.hups.PointSet set as an array points[ \(n\)][ \(s\)]. | |
| static DoubleArrayList | sort (double[] T, int n) |
| Sorts the first \(n\) points of \(T\). More... | |
Static Protected Member Functions inherited from Discrepancy | |
| static void | setONES (int s) |
Protected Attributes inherited from BigDiscrepancy | |
| BigDecimal [] | C1Big |
| BigDecimal [] | C2Big |
| BigDecimal [] | C3Big |
| BigDecimal [] | UBig |
| BigDecimal [][] | FactorBig |
Protected Attributes inherited from Discrepancy | |
| double [] | gamma |
| double [][] | Points |
| int | dim |
| int | numPoints |
Static Protected Attributes inherited from Discrepancy | |
| static double [] | ONES = { 1 } |
This class computes the same discrepancy as in umontreal.ssj.discrepancy.DiscShiftBaker1 [see eq.
( baker1 )], but uses multi-precision real numbers.
No method are implemented yet for this class.
Only the subclass umontreal.ssj.discrepancy.BigDiscShiftBaker1Lattice has implemented methods to compute the discrepancy.
| BigDiscShiftBaker1 | ( | double | points[][], |
| int | n, | ||
| int | s | ||
| ) |
Constructor with the \(n\) points points[i] in \(s\) dimensions, with all the weights \(\gamma_r = 1\).
points[i][r] is the r-th coordinate of point i. Indices i and r start at 0.
| BigDiscShiftBaker1 | ( | double | points[][], |
| int | n, | ||
| int | s, | ||
| double [] | gamma | ||
| ) |
Constructor with the \(n\) points points[i] in \(s\) dimensions, with weights \(\gamma_r = \) gamma[r-1].
points[i][r] is the r-th coordinate of point i. Indices i and r start at 0.
| BigDiscShiftBaker1 | ( | int | n, |
| int | s, | ||
| double [] | gamma | ||
| ) |
Constructor for a lattice of \(n\) points in \(s\) dimensions, with weights \(\gamma_r = \) gamma[r-1], \(r = 1,2, …, s\).
The \(n\) points will be chosen later.
| BigDiscShiftBaker1 | ( | PointSet | set | ) |
Constructor with the point set set.
All the points are copied in an internal array.
Empty constructor.
One must set the points, the dimension, and the weight factors before calling any method.
|
staticpackage |
|
staticpackage |
|
staticpackage |
1.8.14