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

Function test_mstump_include_discords

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

Source from the content-addressed store, hash-verified

280
281@pytest.mark.parametrize("T, m", test_data)
282def test_mstump_include_discords(T, m):
283 for width in range(T.shape[0]):
284 for i in range(T.shape[0] - width):
285 include = np.asarray(range(i, i + width + 1))
286
287 excl_zone = int(np.ceil(m / 4))
288
289 ref_P, ref_I = naive.mstump(T, m, excl_zone, include, discords=True)
290 comp_P, comp_I = mstump(T, m, include, discords=True)
291
292 npt.assert_almost_equal(ref_P, comp_P)
293 npt.assert_almost_equal(ref_I, comp_I)
294
295
296@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

mstumpFunction · 0.90

Tested by

no test coverage detected