MCPcopy
hub / github.com/stumpy-dev/stumpy / test_aamp_A_B_join

Function test_aamp_A_B_join

tests/test_aamp.py:46–57  ·  view source on GitHub ↗
(T_A, T_B)

Source from the content-addressed store, hash-verified

44
45@pytest.mark.parametrize("T_A, T_B", test_data)
46def test_aamp_A_B_join(T_A, T_B):
47 m = 3
48 for p in [1.0, 2.0, 3.0]:
49 ref_mp = naive.aamp(T_A, m, T_B=T_B, p=p)
50 comp_mp = aamp(T_A, m, T_B, ignore_trivial=False, p=p)
51 naive.replace_inf(ref_mp)
52 naive.replace_inf(comp_mp)
53 npt.assert_almost_equal(ref_mp, comp_mp)
54
55 comp_mp = aamp(pd.Series(T_A), m, pd.Series(T_B), ignore_trivial=False, p=p)
56 naive.replace_inf(comp_mp)
57 npt.assert_almost_equal(ref_mp, comp_mp)
58
59
60def test_aamp_constant_subsequence_self_join():

Callers

nothing calls this directly

Calls 1

aampFunction · 0.90

Tested by

no test coverage detected