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

Function test_multi_mass_absolute

tests/test_maamp.py:46–59  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

44
45@pytest.mark.parametrize("T, m", test_data)
46def test_multi_mass_absolute(T, m):
47 trivial_idx = 2
48
49 Q = T[:, trivial_idx : trivial_idx + m]
50
51 for p in [1.0, 2.0, 3.0]:
52 ref = naive.multi_mass_absolute(Q, T, m, p=p)
53
54 _T, T_subseq_isfinite = core.preprocess_non_normalized(T, m)
55 comp = _multi_mass_absolute(
56 Q, _T, m, T_subseq_isfinite[:, trivial_idx], T_subseq_isfinite, p=p
57 )
58
59 npt.assert_almost_equal(ref, comp, decimal=config.STUMPY_TEST_PRECISION)
60
61
62@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

_multi_mass_absoluteFunction · 0.90

Tested by

no test coverage detected