Example usage for Java org.apache.commons.math3.stat.inference KolmogorovSmirnovTest fields, constructors, methods, implement or subclass
The text is from its open source code.
KolmogorovSmirnovTest() Construct a KolmogorovSmirnovTest instance with a default random data generator. |
double | kolmogorovSmirnovStatistic(RealDistribution distribution, double[] data) Computes the one-sample Kolmogorov-Smirnov test statistic, \(D_n=\sup_x |F_n(x)-F(x)|\) where \(F\) is the distribution (cdf) function associated with distribution , \(n\) is the length of data and \(F_n\) is the empirical distribution that puts mass \(1/n\) at each of the values in data . |
double | kolmogorovSmirnovStatistic(double[] x, double[] y) Computes the two-sample Kolmogorov-Smirnov test statistic, \(D_{n,m}=\sup_x |F_n(x)-F_m(x)|\) where \(n\) is the length of x , \(m\) is the length of y , \(F_n\) is the empirical distribution that puts mass \(1/n\) at each of the values in x and \(F_m\) is the empirical distribution of the y values. |