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
                 7.07106781e-01 -7.07106781e-01j])
        py_result = py_ipdft_inner(x, X, W, ulim, N)
        pyx_result = pyx_ipdft_inner(x, X, W, ulim, N)
        for i, j in zip(py_result, pyx_result):
            self.assertFloatEqual(abs(i), abs(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
                 7.07106781e-01 -7.07106781e-01j])
        py_result = py_ipdft_inner(x, X, W, ulim, N)
        pyx_result = pyx_ipdft_inner(x, X, W, ulim, N)
        for i, j in zip(py_result, pyx_result):
            self.assertFloatEqual(abs(i), abs(j))