SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | Protected Member Functions | Static Package Attributes | List of all members
BigDiscShiftBaker1Lattice Class Reference

This class computes the same discrepancy as in umontreal.ssj.discrepancy.DiscShiftBaker1Lattice [see eq. More...

Inheritance diagram for BigDiscShiftBaker1Lattice:
[legend]
Collaboration diagram for BigDiscShiftBaker1Lattice:
[legend]

Public Member Functions

 BigDiscShiftBaker1Lattice (int n, int s, double[] gamma)
 Constructor for a lattice of \(n\) points in at most \(s\) dimensions, with weights \(\gamma_r = \) gamma[r-1], \(r = 1,2, …, s\).
 
 BigDiscShiftBaker1Lattice (int n, int s)
 Constructor for a lattice of \(n\) points in at most \(s\) dimensions, with weights \(\gamma_r = 1\).
 
double compute (long[] a, int s)
 Computes the discrepancy ( shiftBaker1lat ) for a rank-1 lattice in dimension \(s\). 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 BigDiscShiftBaker1
 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 setFactorBig (int n, int s)
 
- Protected Member Functions inherited from BigDiscShiftBaker1
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 double TRENTEUN24 = 31.0/24.0
 
static final double SEPT24 = 7.0/24.0
 
static final BigDecimal BIGp5625 = new BigDecimal(0.5625)
 
static final BigDecimal BIGp046875 = new BigDecimal(0.046875)
 
static final BigDecimal BIGp0625 = new BigDecimal(0.0625)
 
static final BigDecimal BIGp5 = new BigDecimal(0.5)
 
static final BigDecimal BIG1p5 = new BigDecimal(1.5)
 
static final BigDecimal BIG2 = new BigDecimal(2.0)
 
static final BigDecimal BIG3 = new BigDecimal(3.0)
 
static final BigDecimal BIG4 = new BigDecimal(4.0)
 
static final BigDecimal BIG4p5 = new BigDecimal(4.5)
 
static final BigDecimal BIG5 = new BigDecimal(5.0)
 
static final BigDecimal BIG6 = new BigDecimal(6.0)
 
static final BigDecimal BIG8 = new BigDecimal(8.0)
 
static final BigDecimal BIG14 = new BigDecimal(14.0)
 
static final BigDecimal BIG31s24
 
static final BigDecimal BIG7s24
 
- Static Package Attributes inherited from BigDiscShiftBaker1
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 }
 

Detailed Description

This class computes the same discrepancy as in umontreal.ssj.discrepancy.DiscShiftBaker1Lattice [see eq.

( shiftBaker1lat )], but uses multi-precision real numbers.

Member Function Documentation

◆ compute()

double compute ( long []  a,
int  s 
)

Computes the discrepancy ( shiftBaker1lat ) for a rank-1 lattice in dimension \(s\).

This lattice is generated by \(a_r =\) a[r-1], \(r=1,2, …, s\).

Member Data Documentation

◆ BIG31s24

final BigDecimal BIG31s24
staticpackage
Initial value:
=
new BigDecimal("1.2916666666666666666666666666666667")

◆ BIG7s24

final BigDecimal BIG7s24
staticpackage
Initial value:
=
new BigDecimal("0.2916666666666666666666666666666667")

The documentation for this class was generated from the following file: