MCPcopy Index your code
hub / github.com/stumpy-dev/stumpy / test_maamp_multi_distance_profile

Function test_maamp_multi_distance_profile

tests/test_maamp.py:63–71  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

61
62@pytest.mark.parametrize("T, m", test_data)
63def test_maamp_multi_distance_profile(T, m):
64 _T, T_subseq_isfinite = core.preprocess_non_normalized(T, m)
65 for p in [1.0, 2.0, 3.0]:
66 for query_idx in range(_T.shape[0] - m + 1):
67 ref_D = naive.maamp_multi_distance_profile(query_idx, _T, m, p=p)
68
69 comp_D = maamp_multi_distance_profile(query_idx, _T, m, p=p)
70
71 npt.assert_almost_equal(ref_D, comp_D)
72
73
74@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected