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

# cogent.maths.stats.kendall.pkendall

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)

```    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 alt in two:
if q > num * (num - 1) / 4:
p = 1 - pkendall(q-1, num, Gamma(num+1), working)
else:
p = pkendall(q, num, Gamma(num+1), working)
p = min(2*p, 1)
elif alt in hi:
p = 1 - pkendall(q-1, num, Gamma(num+1), working)
elif alt in lo:
p = pkendall(q, num, Gamma(num+1), working)
```

```    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 alt in two:
if q > num * (num - 1) / 4:
p = 1 - pkendall(q-1, num, Gamma(num+1), working)
else:
p = pkendall(q, num, Gamma(num+1), working)
p = min(2*p, 1)
elif alt in hi:
p = 1 - pkendall(q-1, num, Gamma(num+1), working)
elif alt in lo:
p = pkendall(q, num, Gamma(num+1), working)
```