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_period.py   cogent(Download)
 
try:
    from cogent.maths._period import ipdft_inner as pyx_ipdft_inner, \
                        goertzel_inner as pyx_goertzel_inner, \
                        autocorr_inner as pyx_autocorr_inner
        N = 100
        py_autocorr_inner(x, py_xc, N)
        pyx_autocorr_inner(x, pyx_xc, N)
        for i, j in zip(py_xc, pyx_xc):
            self.assertFloatEqual(i, j)

src/p/y/pycogent-HEAD/tests/test_maths/test_period.py   pycogent(Download)
 
try:
    from cogent.maths._period import ipdft_inner as pyx_ipdft_inner, \
                        goertzel_inner as pyx_goertzel_inner, \
                        autocorr_inner as pyx_autocorr_inner
        N = 100
        py_autocorr_inner(x, py_xc, N)
        pyx_autocorr_inner(x, pyx_xc, N)
        for i, j in zip(py_xc, pyx_xc):
            self.assertFloatEqual(i, j)