|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.test.distribution.kolmogorov.KolmogorovDistribution
public class KolmogorovDistribution
KolmogorovDistribution distribution is the distribution of the KolmogorovDistribution–Smirnov statistic. The statistic is defined as the supremum of the absolute difference between the empirical and reference distributions. To compute the cdf of the KolmogorovDistribution distribution, we implement the algorithm published in
Evaluating KolmogorovDistribution's distribution by George Marsaglia, Wai Wan Tsang & Jingbo Wang (2003) Journal of Statistical Software, 8/18.This part is not done yet. To compute the moments, we might use
Computing the cumulative distribution function of the KolmogorovDistribution-Smirnov statistic Drew, J.H., Glen, A.G. and Leemis, L.M. Computational Statistics and Data Analysis 34 (2000) 1-15.
| Field Summary | |
|---|---|
int |
bigN
the big N for which n > bigN we use the asymptotic distribution |
int |
n
the number of observations |
boolean |
rightTailApproximation
true if we use approximation for the right tail to speed up computation; up to 7 digit of accuracy |
| Constructor Summary | |
|---|---|
KolmogorovDistribution(int n)
Construct a KolmogorovDistribution distribution for a sample size n. |
|
KolmogorovDistribution(int n,
int bigN,
boolean rightTailApproximation)
Construct a KolmogorovDistribution distribution for a sample size n. |
|
| Method Summary | |
|---|---|
static double |
asymptoticCDF(double x)
the asymptotic distribution of the KolmogorovDistribution distribution |
double |
cdf(double d)
The cumulative distribution function. |
double |
density(double x)
Deprecated. Not supported yet. |
double |
entropy()
Deprecated. Not supported yet. |
double |
kurtosis()
Deprecated. Not supported yet. |
double |
mean()
Deprecated. Not supported yet. |
double |
median()
Deprecated. Not supported yet. |
double |
moment(double x)
Deprecated. Not supported yet. |
double |
quantile(double u)
Deprecated. Not supported yet. |
double |
skew()
Deprecated. Not supported yet. |
double |
variance()
Deprecated. Not supported yet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int n
public final int bigN
public final boolean rightTailApproximation
true if we use approximation for the right tail to speed up computation; up to 7 digit of accuracy
| Constructor Detail |
|---|
public KolmogorovDistribution(int n,
int bigN,
boolean rightTailApproximation)
n.
n - the number of observationsbigN - we use asymptotic distribution for n > bigNrightTailApproximation - true if we use the right tail approximationpublic KolmogorovDistribution(int n)
n.
We use the asymptotic distribution for n > 16000.
We use an approximation for the right tail.
n - the number of observation| Method Detail |
|---|
@Deprecated public double mean()
UnivariateDistribution
mean in interface UnivariateDistribution@Deprecated public double median()
UnivariateDistribution
median in interface UnivariateDistribution@Deprecated public double variance()
UnivariateDistribution
variance in interface UnivariateDistribution@Deprecated public double skew()
UnivariateDistribution
skew in interface UnivariateDistribution@Deprecated public double kurtosis()
UnivariateDistribution
kurtosis in interface UnivariateDistribution@Deprecated public double entropy()
UnivariateDistribution
entropy in interface UnivariateDistributionpublic double cdf(double d)
UnivariateDistribution
F(x) = Pr(X <= x)
cdf in interface UnivariateDistributiond - x
F(x) = Pr(X <= x)public static double asymptoticCDF(double x)
x -
F(x)@Deprecated public double quantile(double u)
UnivariateDistribution
F-1(u) = x, such that
Pr(X <= x) = u
This may not always exist.
quantile in interface UnivariateDistributionu - u
F-1(u)@Deprecated public double density(double x)
UnivariateDistributionF.
It describes the density of probability at each point in the sample space.
f(x) = dF(X) / dx
This may not always exist. For the discrete cases, this is the probability mass function. It gives the probability that a discrete random variable is exactly equal to some value.
density in interface UnivariateDistributionx - x
F(x) = Pr(X <= x)@Deprecated public double moment(double x)
UnivariateDistribution
etX
This may not always exist.
moment in interface UnivariateDistributionx - x
E(exp(tX))
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||