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

Function test_mstump_include

tests/test_mstump.py:257–267  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

255
256@pytest.mark.parametrize("T, m", test_data)
257def test_mstump_include(T, m):
258 for width in range(T.shape[0]):
259 for i in range(T.shape[0] - width):
260 include = np.asarray(range(i, i + width + 1))
261 excl_zone = int(np.ceil(m / 4))
262
263 ref_P, ref_I = naive.mstump(T, m, excl_zone, include)
264 comp_P, comp_I = mstump(T, m, include)
265
266 npt.assert_almost_equal(ref_P, comp_P)
267 npt.assert_almost_equal(ref_I, comp_I)
268
269
270@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

mstumpFunction · 0.90

Tested by

no test coverage detected