Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# cogent.maths.stats.ks.pkstwo

All Samples(10)  |  Call(4)  |  Derive(0)  |  Import(6)

```from cogent.maths.stats.special import lgam, log_one_minus, one_minus_exp,\
MACHEP
from cogent.maths.stats.ks import psmirnov2x, pkstwo
from cogent.maths.stats.kendall import pkendall, kendalls_tau
from cogent.maths.stats.special import Gamma
```
```    if Pval == None:
if alt in two:
Pval = 1 - pkstwo(sqrt(n) * stat)
else:
Pval = exp(-2 * n * stat**2)
```

```from cogent.maths.stats.special import log_one_minus, one_minus_exp, MACHEP
from cogent.maths.stats import chisqprob
from cogent.maths.stats.ks import psmirnov2x, pkstwo
from cogent.maths.stats.special import Gamma

```
```    if Pval is None:
if alt in two:
Pval = 1 - pkstwo(sqrt(n) * stat)
else:
Pval = exp(-2 * n * stat ** 2)
```

```#!/usr/bin/env python
from cogent.util.unit_test import TestCase, main
from cogent.maths.stats.ks import pkolmogorov1x, pkolmogorov2x, pkstwo,\
psmirnov2x
from cogent.maths.stats.test import ks_test, ks_boot
```

```from cogent.maths.stats.special import lgam, log_one_minus, one_minus_exp,\
MACHEP
from cogent.maths.stats.ks import psmirnov2x, pkstwo
from cogent.maths.stats.kendall import pkendall, kendalls_tau
from cogent.maths.stats.special import Gamma
```
```    if Pval == None:
if alt in two:
Pval = 1 - pkstwo(sqrt(n) * stat)
else:
Pval = exp(-2 * n * stat**2)
```

```#!/usr/bin/env python
from cogent.util.unit_test import TestCase, main
from cogent.maths.stats.ks import pkolmogorov1x, pkolmogorov2x, pkstwo,\
psmirnov2x
from cogent.maths.stats.test import ks_test, ks_boot
```

```    MACHEP)
from cogent.maths.stats import chisqprob
from cogent.maths.stats.ks import psmirnov2x, pkstwo
from cogent.maths.stats.special import Gamma

```
```    if Pval == None:
if alt in two:
Pval = 1 - pkstwo(sqrt(n) * stat)
else:
Pval = exp(-2 * n * stat**2)
```