Example #1
0
 def test_cascade(self):
     for J in xrange(1, 7):
         for i in xrange(1, 5):
             lpcoef = wavelets.daub(i)
             k = len(lpcoef)
             x, phi, psi = wavelets.cascade(lpcoef, J)
             assert_(len(x) == len(phi) == len(psi))
             assert_equal(len(x), (k - 1) * 2**J)
Example #2
0
 def test_cascade(self):
     for J in xrange(1, 7):
         for i in xrange(1, 5):
             lpcoef = wavelets.daub(i)
             k = len(lpcoef)
             x, phi, psi = wavelets.cascade(lpcoef, J)
             assert_(len(x) == len(phi) == len(psi))
             assert_equal(len(x), (k - 1) * 2 ** J)
Example #3
0
 def test_daub(self):
     for i in xrange(1, 15):
         assert_equal(len(wavelets.daub(i)), i * 2)
Example #4
0
 def test_daub(self):
     for i in xrange(1, 15):
         assert_equal(len(wavelets.daub(i)), i * 2)