Deprecated
to be removed in version 4.0 -
use org.
Treats the distribution of the two-sided P(D_n < d) where
D_n = sup_x |G(x) - G_n (x)| for the theoretical cdf G and
the empirical cdf G_n.
This implementation is based on [1] with certain quick decisions for extreme values given in [2].
In short, when wanting to evaluate P(D_n < d), the method in [1] is
to write d = (k - h) / n for positive integer k and
0 <= h < 1. Then P(D_n < d) = (n! / n^n) * t_kk, where
t_kk is the (k, k)'th entry in the special matrix
H^n, i.e. H to the n'th power.
References:
| Modifier and Type | Field and Description |
|---|---|
| private int | n
Number of observations. |
| private static final long | serialVersionUID
Serializable version identifier. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: the two-sided probability ofP(D_n < d)statistic d)Calculates |
| public double | Returns: the two-sided probability ofP(D_n < d)statistic d, boolean whether the probability should be calculated exact using
exact)org. everywhere at the
expense of very slow execution time, or if double should be used
convenient places to gain speed. Almost never choose true in real
applications unless you are very sure; true is almost solely for
verification purposes.Calculates |
| public double | Returns: the two-sided probability ofP(D_n < d)statistic d)Calculates |
| private FieldMatrix | |
| private double | Returns: the two-sided probability ofP(D_n < d)statistic d)Calculates the exact value of |
| private double | Returns: the two-sided probability ofP(D_n < d)statistic d)Calculates |
| n | back to summary |
|---|---|
| private int n Number of observations. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable version identifier. | |
| KolmogorovSmirnovDistribution | back to summary |
|---|---|
public KolmogorovSmirnovDistribution(int n) throws NotStrictlyPositiveException
| |
| cdf | back to summary |
|---|---|
| public double cdf(double d) throws MathArithmeticException Calculates
| |
| cdf | back to summary |
|---|---|
| public double cdf(double d, boolean exact) throws MathArithmeticException Calculates
| |
| cdfExact | back to summary |
|---|---|
| public double cdfExact(double d) throws MathArithmeticException Calculates
| |
| createH | back to summary |
|---|---|
| private FieldMatrix Creates
| |
| exactK | back to summary |
|---|---|
| private double exactK(double d) throws MathArithmeticException Calculates the exact value of
| |
| roundedK | back to summary |
|---|---|
| private double roundedK(double d) throws MathArithmeticException Calculates
| |