()
| 338 | |
| 339 | |
| 340 | def 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 | |
| 353 | def test_identical_subsequence_self_join(): |