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

Function test_constant_subsequence_self_join

tests/test_maamp.py:273–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271
272
273def test_constant_subsequence_self_join():
274 T_A = np.concatenate((np.zeros(20, dtype=np.float64), np.ones(5, dtype=np.float64)))
275 T = np.array([T_A, T_A, np.random.rand(T_A.shape[0])])
276 m = 3
277
278 excl_zone = int(np.ceil(m / 4))
279
280 ref_P, ref_I = naive.maamp(T, m, excl_zone)
281 comp_P, comp_I = maamp(T, m)
282
283 npt.assert_almost_equal(ref_P, comp_P) # ignore indices
284
285
286def test_identical_subsequence_self_join():

Callers

nothing calls this directly

Calls 1

maampFunction · 0.90

Tested by

no test coverage detected