public class KolmogorovDistribution extends java.lang.Object implements ProbabilityDistribution
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.
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
asymptoticCDF(double x)
the asymptotic distribution of the KolmogorovDistribution distribution
|
double |
cdf(double d)
Get the cumulative probability F(x) = Pr(X ≤ x).
|
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.
|
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 accuracypublic KolmogorovDistribution(int n,
int bigN,
boolean rightTailApproximation)
n - the number of observationsbigN - we use asymptotic distribution for n > bigNrightTailApproximation - true if we use the right tail approximationpublic KolmogorovDistribution(int n)
n - the number of observation@Deprecated public double mean()
ProbabilityDistributionmean in interface ProbabilityDistribution@Deprecated public double median()
ProbabilityDistributionmedian in interface ProbabilityDistribution@Deprecated public double variance()
ProbabilityDistributionvariance in interface ProbabilityDistribution@Deprecated public double skew()
ProbabilityDistributionskew in interface ProbabilityDistribution@Deprecated public double kurtosis()
ProbabilityDistributionkurtosis in interface ProbabilityDistribution@Deprecated public double entropy()
ProbabilityDistributionentropy in interface ProbabilityDistributionpublic double cdf(double d)
ProbabilityDistributioncdf in interface ProbabilityDistributiond - xpublic static double asymptoticCDF(double x)
x - F(x)@Deprecated public double quantile(double u)
ProbabilityDistributionThis may not always exist.F-1(u) = x, such that Pr(X ≤ x) = u
quantile in interface ProbabilityDistributionu - u, a quantile@Deprecated public double density(double x)
ProbabilityDistributionf(x) = dF(X) / dxThis 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 ProbabilityDistributionx - x@Deprecated public double moment(double x)
ProbabilityDistributionE(etX)This may not always exist.
moment in interface ProbabilityDistributionx - x