(Q, T)
| 423 | |
| 424 | @pytest.mark.parametrize("Q, T", test_data) |
| 425 | def test_match_mean_stddev(Q, T): |
| 426 | m = Q.shape[0] |
| 427 | excl_zone = int(np.ceil(m / 4)) |
| 428 | max_distance = 0.3 |
| 429 | |
| 430 | left = naive_match( |
| 431 | Q, |
| 432 | T, |
| 433 | excl_zone, |
| 434 | max_distance=max_distance, |
| 435 | ) |
| 436 | |
| 437 | M_T, Σ_T = naive.compute_mean_std(T, len(Q)) |
| 438 | |
| 439 | right = match( |
| 440 | Q, |
| 441 | T, |
| 442 | M_T, |
| 443 | Σ_T, |
| 444 | max_matches=None, |
| 445 | max_distance=lambda D: max_distance, # also test lambda functionality |
| 446 | ) |
| 447 | |
| 448 | npt.assert_almost_equal(left, right) |
| 449 | |
| 450 | |
| 451 | @pytest.mark.parametrize("Q, T", test_data) |
nothing calls this directly
no test coverage detected