**'org.apache.commons.math3.distribution.KolmogorovSmirnovDistribution'**Java class

org.apache.commons.math3.distribution

## Class KolmogorovSmirnovDistribution

- java.lang.Object
- org.apache.commons.math3.distribution.KolmogorovSmirnovDistribution

- All Implemented Interfaces:
- Serializable

public class KolmogorovSmirnovDistributionextends Objectimplements Serializable

Implementation of the Kolmogorov-Smirnov distribution.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:

- [1] Evaluating Kolmogorov's Distribution by George Marsaglia, Wai Wan Tsang, and Jingbo Wang
- [2] Computing the Two-Sided Kolmogorov-Smirnov Distribution by Richard Simard and Pierre L'Ecuyer

**Warning:**You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.