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

Function test_maamp_include

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

Source from the content-addressed store, hash-verified

194
195@pytest.mark.parametrize("T, m", test_data)
196def test_maamp_include(T, m):
197 for width in range(T.shape[0]):
198 for i in range(T.shape[0] - width):
199 include = np.asarray(range(i, i + width + 1))
200 excl_zone = int(np.ceil(m / 4))
201
202 ref_P, ref_I = naive.maamp(T, m, excl_zone, include)
203 comp_P, comp_I = maamp(T, m, include)
204
205 npt.assert_almost_equal(ref_P, comp_P)
206 npt.assert_almost_equal(ref_I, comp_I)
207
208
209@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

maampFunction · 0.90

Tested by

no test coverage detected