Exemple #1
0

#OneDHWTTests.ex_1_15_p10()
#OneDHWTTests.ex_1_3_2_4_p11()
#OneDHWTTests.ex_1_12_p19()
#OneDHWTTests.ex_1_16_p20()
#OneDHWTTests.ex_1_19_p21()
#OneDHWTTests.testOrdFHWTForNumIters([1, 7])

#OneDHWTTests.testOrdInvFHWT([8, 6, 7, 3, 1, 1, 2, 4])
#for i in xrange(20):
#   rslt = OneDHWTTests.testOrdInvFHWT(NumUtils.genListOfRandomInts(0, 200, 128))
#   if rslt == False:
#       break

OneDHWTTests.testOrdInvFHWTForNumItersGivenNumFwdIters(
    [1, 2, 3, 4, 5, 6, 7, 8], 3, 1)
OneDHWTTests.testOrdInvFHWTForNumItersGivenNumFwdIters(
    [1, 2, 3, 4, 5, 6, 7, 8], 3, 2)
OneDHWTTests.testOrdInvFHWTForNumItersGivenNumFwdIters(
    [1, 2, 3, 4, 5, 6, 7, 8], 3, 3)

for i in xrange(20):
    for num_fwd_iters in xrange(1, 6):
        signal = NumUtils.genListOfRandomInts(0, 200, 32)
        for num_inv_iters in xrange(1, num_fwd_iters + 1):
            rslt = OneDHWTTests.testOrdInvFHWTForNumItersGivenNumFwdIters(
                signal, num_fwd_iters, num_inv_iters)
            if rslt == False:
                break