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

cogent.maths.stats.special.incbi

All Samples(18)  |  Call(14)  |  Derive(0)  |  Import(4)

```"""
from __future__ import division
from cogent.maths.stats.special import erf, erfc, igamc, igam, betai, log1p, \
expm1, SQRTH, MACHEP, MAXNUM, PI, ndtri, incbi, igami, fix_rounding_error,\
ln_binomial
```
```            return 0.0
z = 1.0 - 2.0 * p;
z = incbi(0.5, 0.5*rk, abs(z))
t = sqrt(rk*z/(1.0-z))
if p < 0.5:
```
```            p = 1.0 - p;
rflg = 1
z = incbi(0.5*rk, 0.5, 2.0*p)

if MAXNUM * z < rk:
```
```        p = incbet(dn, dk, 0.5)
if p > 0.5:
p = incbi(dk, dn, 1.0-y)
else:
p = 1.0 - incbi(dn, dk, y)
```

```"""
from __future__ import division
from cogent.maths.stats.special import erf, erfc, igamc, igam, betai, log1p, \
expm1, SQRTH, MACHEP, MAXNUM, PI, ndtri, incbi, igami, fix_rounding_error,\
ln_binomial
```
```            return 0.0
z = 1.0 - 2.0 * p;
z = incbi(0.5, 0.5*rk, abs(z))
t = sqrt(rk*z/(1.0-z))
if p < 0.5:
```
```            p = 1.0 - p;
rflg = 1
z = incbi(0.5*rk, 0.5, 2.0*p)

if MAXNUM * z < rk:
```
```        p = incbet(dn, dk, 0.5)
if p > 0.5:
p = incbi(dk, dn, 1.0-y)
else:
p = 1.0 - incbi(dn, dk, y)
```

```#!/usr/bin/env python
"""Unit tests for special functions used in statistics.
"""
from cogent.util.unit_test import TestCase, main
from cogent.maths.stats.special import permutations, permutations_exact, \
```
```            for b in bb_range:
for y in yy_range:
result = incbi(a,b,y)
e = exp[i]
self.assertFloatEqual(e, result)
```

```#!/usr/bin/env python
"""Unit tests for special functions used in statistics.
"""
from cogent.util.unit_test import TestCase, main
from cogent.maths.stats.special import permutations, permutations_exact, \
```
```            for b in bb_range:
for y in yy_range:
result = incbi(a,b,y)
e = exp[i]
self.assertFloatEqual(e, result)
```