Beispiel #1
0
def test_mpdist_vect_k(T_A, T_B, k):
    m = 3
    ref_mpdist_vect = naive.mpdist_vect(T_A, T_B, m, k=k)
    comp_mpdist_vect = _mpdist_vect(T_A, T_B, m, k=k)

    npt.assert_almost_equal(ref_mpdist_vect, comp_mpdist_vect)
Beispiel #2
0
def test_mpdist_vect_percentage(T_A, T_B, percentage):
    m = 3
    ref_mpdist_vect = naive.mpdist_vect(T_A, T_B, m, percentage=percentage)
    comp_mpdist_vect = _mpdist_vect(T_A, T_B, m, percentage=percentage)

    npt.assert_almost_equal(ref_mpdist_vect, comp_mpdist_vect)