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

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

src/q/i/qiime-1.8.0/qiime/rarefaction.py   qiime(Download)
import numpy
from numpy import inf
from cogent.maths.stats.rarefaction import (subsample,
                                                  subsample_freq_dist_nonzero,
                                                  subsample_random,

src/q/i/qiime-1.8.0/scripts/single_rarefaction.py   qiime(Download)
__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

src/q/i/qiime-1.8.0/scripts/multiple_rarefactions.py   qiime(Download)
__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

src/c/o/cogent-1.5.3/tests/test_maths/test_stats/test_rarefaction.py   cogent(Download)
#!/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

src/p/y/pycogent-HEAD/tests/test_maths/test_stats/test_rarefaction.py   pycogent(Download)
#!/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