示例#1
0
def test_aampdist_vect(T_A, T_B):
    m = 3
    for p in [1.0, 2.0, 3.0]:
        ref_aampdist_vect = naive.aampdist_vect(T_A, T_B, m, p=p)
        comp_aampdist_vect = _aampdist_vect(T_A, T_B, m, p=p)

        npt.assert_almost_equal(ref_aampdist_vect, comp_aampdist_vect)
示例#2
0
def test_aampdist_vect_k(T_A, T_B, k):
    m = 3
    ref_aampdist_vect = naive.aampdist_vect(T_A, T_B, m, k=k)
    comp_aampdist_vect = _aampdist_vect(T_A, T_B, m, k=k)

    npt.assert_almost_equal(ref_aampdist_vect, comp_aampdist_vect)
示例#3
0
def test_aampdist_vect_percentage(T_A, T_B, percentage):
    m = 3
    ref_aampdist_vect = naive.aampdist_vect(T_A, T_B, m, percentage=percentage)
    comp_aampdist_vect = _aampdist_vect(T_A, T_B, m, percentage=percentage)

    npt.assert_almost_equal(ref_aampdist_vect, comp_aampdist_vect)