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

# cogent.maths.stats.rarefaction.subsample_multinomial

All Samples(7)  |  Call(2)  |  Derive(0)  |  Import(5)

```import numpy
from numpy import inf
from cogent.maths.stats.rarefaction import (subsample,
subsample_freq_dist_nonzero,
subsample_random,
```

```__email__ = "justinak@gmail.com"

from cogent.maths.stats.rarefaction import subsample, subsample_multinomial
from qiime.util import parse_command_line_parameters
from qiime.util import make_option
```

```__email__ = "justinak@gmail.com"

from cogent.maths.stats.rarefaction import subsample, subsample_multinomial
from qiime.util import parse_command_line_parameters, create_dir
from qiime.util import make_option
```

```#!/usr/bin/env python
#file test_parse.py
from numpy import array
from cogent.util.unit_test import TestCase, main
from cogent.maths.stats.rarefaction import (subsample,
```
```        for i in range(100):
b = array([2,0,1,2,1,8,6,0,3,3,5,0,0,0,5])
e = subsample_multinomial(b,35)
self.assertTrue(e.sum(),35)
actual[tuple(e)] = None
```

```#!/usr/bin/env python
#file test_parse.py
from numpy import array
from cogent.util.unit_test import TestCase, main
from cogent.maths.stats.rarefaction import (subsample,
```
```        for i in range(100):
b = array([2,0,1,2,1,8,6,0,3,3,5,0,0,0,5])
e = subsample_multinomial(b,35)
self.assertTrue(e.sum(),35)
actual[tuple(e)] = None
```