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

Function test_match_mean_stddev

tests/test_motifs.py:425–448  ·  view source on GitHub ↗
(Q, T)

Source from the content-addressed store, hash-verified

423
424@pytest.mark.parametrize("Q, T", test_data)
425def 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)

Callers

nothing calls this directly

Calls 2

matchFunction · 0.90
naive_matchFunction · 0.85

Tested by

no test coverage detected