()
| 271 | |
| 272 | |
| 273 | def 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 | |
| 286 | def test_identical_subsequence_self_join(): |