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

Function test_identical_subsequence_self_join

tests/test_maamp.py:286–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284
285
286def test_identical_subsequence_self_join():
287 identical = np.random.rand(8)
288 T_A = np.random.rand(20)
289 T_A[1 : 1 + identical.shape[0]] = identical
290 T_A[11 : 11 + identical.shape[0]] = identical
291 T = np.array([T_A, T_A, np.random.rand(T_A.shape[0])])
292 m = 3
293
294 excl_zone = int(np.ceil(m / 4))
295
296 ref_P, ref_I = naive.maamp(T, m, excl_zone)
297 comp_P, comp_I = maamp(T, m)
298
299 npt.assert_almost_equal(
300 ref_P, comp_P, decimal=config.STUMPY_TEST_PRECISION
301 ) # ignore indices
302
303
304@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

maampFunction · 0.90

Tested by

no test coverage detected