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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/c/o/cogent-1.5.3/tests/test_maths/test_stats/test_special.py   cogent(Download)
#!/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, \
        previous_value = 30239.9999
        while start <= end:
            obs = permutations(10,start)
            assert lower_lim <= obs <= upper_lim
            assert obs > previous_value

src/p/y/pycogent-HEAD/tests/test_maths/test_stats/test_special.py   pycogent(Download)
#!/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, \
        previous_value = 30239.9999
        while start <= end:
            obs = permutations(10,start)
            assert lower_lim <= obs <= upper_lim
            assert obs > previous_value