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

Function test_get_first_maamp_profile

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

Source from the content-addressed store, hash-verified

73
74@pytest.mark.parametrize("T, m", test_data)
75def test_get_first_maamp_profile(T, m):
76 excl_zone = int(np.ceil(m / 4))
77 start = 0
78
79 for p in [1.0, 2.0, 3.0]:
80 ref_P, ref_I = naive.maamp(T, m, excl_zone, p=p)
81 ref_P = ref_P[:, start]
82 ref_I = ref_I[:, start]
83
84 _T, T_subseq_isfinite = core.preprocess_non_normalized(T, m)
85 comp_P, comp_I = _get_first_maamp_profile(
86 start, _T, _T, m, excl_zone, T_subseq_isfinite, p=p
87 )
88
89 npt.assert_almost_equal(ref_P, comp_P)
90 npt.assert_equal(ref_I, comp_I)
91
92
93@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

_get_first_maamp_profileFunction · 0.90

Tested by

no test coverage detected