Java org.apache.commons.math3.stat.inference KolmogorovSmirnovTest fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.stat.inference KolmogorovSmirnovTest fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.stat.inference KolmogorovSmirnovTest.

The text is from its open source code.

Constructor

KolmogorovSmirnovTest()
Construct a KolmogorovSmirnovTest instance with a default random data generator.

Method

doublekolmogorovSmirnovStatistic(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 .
doublekolmogorovSmirnovStatistic(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.