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

Function test_constant_subsequence_self_join

tests/test_mstump.py:340–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338
339
340def test_constant_subsequence_self_join():
341 T_A = np.concatenate((np.zeros(20, dtype=np.float64), np.ones(5, dtype=np.float64)))
342 T = np.array([T_A, T_A, np.random.rand(T_A.shape[0])])
343 m = 3
344
345 excl_zone = int(np.ceil(m / 4))
346
347 ref_P, ref_I = naive.mstump(T, m, excl_zone)
348 comp_P, comp_I = mstump(T, m)
349
350 npt.assert_almost_equal(ref_P, comp_P) # ignore indices
351
352
353def test_identical_subsequence_self_join():

Callers

nothing calls this directly

Calls 1

mstumpFunction · 0.90

Tested by

no test coverage detected