Esempio n. 1
0
def test_single_cseg_similarity_2():
    c3 = [1, 0, 4, 3, 2]
    c4 = [3, 0, 4, 2, 1]
    assert comparison.single_cseg_similarity(c3, c4) == 0.8
Esempio n. 2
0
def test_single_cseg_similarity_1():
    c1 = [0, 2, 3, 1]
    c2 = [3, 1, 0, 2]
    assert comparison.single_cseg_similarity(c1, c2) == 0