|
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.DiscL2Unanchored
public class DiscL2Unanchored
DiscL2Unanchored
A discrepancy is said to be reflection-invariant if it has the same value when the points are reflected through any plane xj = 1/2, passing through the center of the unit hypercube, i.e. when any one of the coordinates, say zj, is replaced by 1 - zj for all the points. The star discrepancy is not reflection-invariant because it is anchored at the origin, but the unanchored discrepancy is. This discrepancy counts the points in all boxes [x, y)∈[0, 1)s.
This class computes the L2-unanchored discrepancy for a set of points P[#!vMOR94a!#,#!tHIC99a!#], given by
where n is the number of points of P, s is the dimension, and zik is the k-th coordinate of point i.In one dimension, formula is equivalent to
Constructor Summary | |
---|---|
DiscL2Unanchored()
. |
|
DiscL2Unanchored(double[][] points,
int n,
int s)
. |
|
DiscL2Unanchored(int n,
int s)
. |
|
DiscL2Unanchored(PointSet set)
. |
Method Summary | |
---|---|
double |
compute(double[][] points,
int n,
int 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. |
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 DiscL2Unanchored(double[][] points, int n, int s)
public DiscL2Unanchored(int n, int s)
public DiscL2Unanchored(PointSet set)
public DiscL2Unanchored()
Method Detail |
---|
public double compute(double[][] points, int n, int s, double[] gamma)
Discrepancy
compute
in class Discrepancy
public double compute(double[][] points, int n, int s)
compute
in class Discrepancy
public double compute(double[] T, int n)
compute
in class Discrepancy
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |