|
SSJ V. 2.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.gof.FBar
public class FBar
WARNING: All methods in this class are deprecated, except the method
scan
. They now call the method barF of the appropriate class
in package probdist
, which use
better approximations than the ones that were previously used in this class.
This class is similar to FDist
, except that it provides static methods
to compute or approximate the complementary distribution function of X,
which we define as
bar(F)(x) = P[X >= x], instead of
F(x) = P[X <= x].
Note that with our definition of bar(F), one has
bar(F)(x) = 1 - F(x) for continuous distributions and
bar(F)(x) = 1 - F(x - 1) for discrete distributions over the integers.
This is non-standard but we find it convenient.
For more details about the specific distributions,
see the class FDist
.
When F(x) is very close to 1, these methods generally provide much
more precise values of
bar(F)(x) than using 1 - F(x) where F(x) is
computed by a method from FDist
.
Method Summary | |
---|---|
static double |
andersonDarling(int n,
double x)
Deprecated. |
static double |
cramerVonMises(int n,
double x)
Deprecated. |
static double |
kolmogorovSmirnov(int n,
double x)
Deprecated. |
static double |
kolmogorovSmirnovPlus(int n,
double x)
Deprecated. |
static double |
scan(int n,
double d,
int m)
Return P[SN(d ) >= m], where SN(d ) is the scan statistic. |
static double |
watsonG(int n,
double x)
Deprecated. |
static double |
watsonU(int n,
double x)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static double kolmogorovSmirnov(int n, double x)
KolmogorovSmirnovDistQuick.barF
(n, x)
instead. Returns
P[Dn > x], where Dn is the Kolmogorov-Smirnov statistic.
n
- sample sizex
- Kolmogorov-Smirnov statistic
@Deprecated public static double kolmogorovSmirnovPlus(int n, double x)
KolmogorovSmirnovPlusDist.barF
(n, x)
instead. Returns
P[Dn+ > x], where Dn+ is the
Kolmogorov-Smirnov+ statistic.
n
- sample sizex
- Kolmogorov-Smirnov+ statistic
@Deprecated public static double cramerVonMises(int n, double x)
CramerVonMisesDist.barF
(n, x)
instead. Returns
P[Wn2 > x], where Wn2 is the
Cramér-von Mises statistic.
n
- sample sizex
- Cramér-von Mises statistic
@Deprecated public static double watsonU(int n, double x)
WatsonUDist.barF
(n, x)
instead. Returns
P[Un2 > x], where Un2 is the Watson U statistic.
n
- sample sizex
- Watson Un2 statistic
@Deprecated public static double watsonG(int n, double x)
WatsonGDist.barF
(n, x)
instead. Returns
P[Gn > x], where Gn is the Watson G statistic.
n
- sample sizex
- Watson G statistic
@Deprecated public static double andersonDarling(int n, double x)
AndersonDarlingDistQuick.barF
(n, x)
instead. Returns
P[An2 > x], where An2 is the Anderson-Darling statistic.
n
- sample sizex
- Anderson-Darling statistic
public static double scan(int n, double d, int m)
n
- sample size ( >= 2)d
- length of the test interval (∈(0, 1))m
- scan statistic
|
SSJ V. 2.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |