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

# cogent.maths.stats.special.log_one_minus

All Samples(18)  |  Call(12)  |  Derive(0)  |  Import(6)

```    t_high, t_low, tprob, f_high, f_low, fprob, binomial_high, binomial_low, \
ndtri
from cogent.maths.stats.special import lgam, log_one_minus, one_minus_exp,\
MACHEP
from cogent.maths.stats.ks import psmirnov2x, pkstwo
```
```    numbers.
"""
return one_minus_exp(log_one_minus(p_final)/n)

def multiple_n(p_initial, p_final):
"""Returns number of comparisons such that p_initial maps to p_final.

WARNING: not very accurate when p_final is very close to 1.
"""
return log_one_minus(p_final)/log_one_minus(p_initial)
```

```    t_high, t_low, tprob, f_high, f_low, fprob, binomial_high, binomial_low, \
ndtri
from cogent.maths.stats.special import lgam, log_one_minus, one_minus_exp,\
MACHEP
from cogent.maths.stats.ks import psmirnov2x, pkstwo
```
```    numbers.
"""
return one_minus_exp(log_one_minus(p_final)/n)

def multiple_n(p_initial, p_final):
"""Returns number of comparisons such that p_initial maps to p_final.

WARNING: not very accurate when p_final is very close to 1.
"""
return log_one_minus(p_final)/log_one_minus(p_initial)
```

```    t_high, t_low, tprob, f_high, f_low, fprob, binomial_high, binomial_low,
ndtri)
from cogent.maths.stats.special import (lgam, log_one_minus, one_minus_exp,
MACHEP)
from cogent.maths.stats import chisqprob
```
```    numbers.
"""
return one_minus_exp(log_one_minus(p_final)/n)

def multiple_n(p_initial, p_final):
"""Returns number of comparisons such that p_initial maps to p_final.

WARNING: not very accurate when p_final is very close to 1.
"""
return log_one_minus(p_final)/log_one_minus(p_initial)
```

```                                             t_high, t_low, tprob, f_high, f_low, fprob, binomial_high, binomial_low,
ndtri)
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
```
```    numbers.
"""
return one_minus_exp(log_one_minus(p_final) / n)

```
```    WARNING: not very accurate when p_final is very close to 1.
"""
return log_one_minus(p_final) / log_one_minus(p_initial)

```

```#!/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, \
```

```#!/usr/bin/env python