complementaryCDF

Computes the complementary cumulative probability PD_n >= x of the Kolmogorov-Smirnov distribution with sample size n at x. It returns at least 10 decimal digits of precision for n <= 140, at least 5 decimal digits of precision for 140 < n <= 200000, and a few correct decimal digits for n 200000.

Return

complementary cumulative probability

Parameters

n

sample size

x

value of Kolmogorov-Smirnov statistic