Exemplo n.º 1
0
def test_latest_small_implicit():
    test_count = 8
    evaluation_base = 4
    ans = [0] * evaluation_base
    for k in xrange(test_count):
        method.generate_data_latest_small_implicit(test_count, k)
        method.generate_matrix(implicit=True)
        b = method.evaluate_implicit()
        for x in xrange(evaluation_base):
            ans[x] += b[x]
    for x in xrange(evaluation_base):
        ans[x] /= test_count
    print ans
Exemplo n.º 2
0
def test100k_implicit():
    test_count = 5
    evaluation_base = 4
    ans = [0] * evaluation_base
    for k in xrange(1, test_count + 1):
        method.generate_data_100k_implicit(k)
        method.generate_matrix(implicit=True)
        b = method.evaluate_implicit()
        for x in xrange(evaluation_base):
            ans[x] += b[x]
    for x in xrange(evaluation_base):
        ans[x] /= test_count
    print ans