public class KolmogorovSmirnovDist extends Object
This class computes both the cumulative probability P[D_n <= x] and the complementary cumulative probability P[D_n >= x] of the 2-sided 1-sample Kolmogorov-Smirnov distribution.
The Kolmogorov-Smirnov test statistic D_n is defined byD_n = sup_x |F(x) - S_n(x)|
where n is the sample size, S_n(x) is an empirical distribution function, and F(x) is a completely specified theoretical distribution.Constructor and Description |
---|
KolmogorovSmirnovDist() |
Modifier and Type | Method and Description |
---|---|
static double |
cdf(int n,
double x)
Computes the cumulative probability P[D_n <= x] of the Kolmogorov-Smirnov
distribution with sample size n at x.
|
static double |
fbar(int n,
double x)
Computes the complementary cumulative probability P[D_n >= x] of the
Kolmogorov-Smirnov distribution with sample size n at x.
|
static void |
main(String[] args) |
public static double cdf(int n, double x)
n
- sample sizex
- value of Kolmogorov-Smirnov statisticpublic static double fbar(int n, double x)
n
- sample sizex
- value of Kolmogorov-Smirnov statisticpublic static void main(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics