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

# cogent.maths.stats.special.betai

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

```"""
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
```
```        rk = k
z = rk / (rk + t * t)
return 0.5 * betai(0.5 * rk, 0.5, z)
#compute integral from -t to + t
if t < 0:
```
```        return  pow(1-p, dn)
else:
return  betai(dn, k+1, 1-p)

def bdtrc(k, n, p):
```
```    else:
dk = k + 1
dk = betai(dk, dn, p)
return dk

```
```    w = a * x
w /= float(b + w)
return betai(0.5 * a, 0.5 * b, w)

```

```"""
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
```
```        rk = k
z = rk / (rk + t * t)
return 0.5 * betai(0.5 * rk, 0.5, z)
#compute integral from -t to + t
if t < 0:
```
```        return  pow(1-p, dn)
else:
return  betai(dn, k+1, 1-p)

def bdtrc(k, n, p):
```
```    else:
dk = k + 1
dk = betai(dk, dn, p)
return dk

```
```    w = a * x
w /= float(b + w)
return betai(0.5 * a, 0.5 * b, w)

```