|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.discrepancy.Discrepancy
umontreal.iro.lecuyer.discrepancy.DiscShift1
umontreal.iro.lecuyer.discrepancy.DiscShift1Lattice
public class DiscShift1Lattice
DiscShift1Lattice
This class computes the same discrepancy for randomly shifted points of a set L as given in eq. for class DiscShift1, but for the special case when the points are the nodes of an integration lattice[#!vHIC02a!#, eq. 16]. It is given by
where n is the number of points of L, s is the dimension of the points, xir is the r-th coordinate of point i, and the γr are arbitrary positive weights. B2(x) is the Bernoulli polynomials[#!mABR70a!#, chap. 23] of degree 2. For a 1-dimensional lattice, the discrepancy becomes Computing the discrepancy for a lattice is much faster than for a general point set.
Constructor Summary | |
---|---|
DiscShift1Lattice()
. |
|
DiscShift1Lattice(double[][] points,
int n,
int s)
. |
|
DiscShift1Lattice(double[][] points,
int n,
int s,
double[] gamma)
. |
|
DiscShift1Lattice(int n,
int s,
double[] gamma)
. |
|
DiscShift1Lattice(Rank1Lattice set)
. |
Method Summary | |
---|---|
double |
compute(double[][] points,
int n,
int s)
. |
double |
compute(double[][] points,
int n,
int s,
double[] gamma)
. |
double |
compute(double[] T,
int n)
. |
Methods inherited from class umontreal.iro.lecuyer.discrepancy.Discrepancy |
---|
compute, compute, compute, compute, compute, compute, compute, formatPoints, getDimension, getGamma, getName, getNumPoints, setGamma, setPoints, setPoints, sort, toArray, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiscShift1Lattice(double[][] points, int n, int s)
public DiscShift1Lattice(double[][] points, int n, int s, double[] gamma)
public DiscShift1Lattice(int n, int s, double[] gamma)
public DiscShift1Lattice(Rank1Lattice set)
public DiscShift1Lattice()
Method Detail |
---|
public double compute(double[][] points, int n, int s)
compute
in class DiscShift1
public double compute(double[][] points, int n, int s, double[] gamma)
compute
in class DiscShift1
public double compute(double[] T, int n)
compute
in class DiscShift1
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |