MCPcopy
hub / github.com/stumpy-dev/stumpy / test_stumpi

Function test_stumpi

tests/test_non_normalized_decorator.py:212–223  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

210
211@pytest.mark.parametrize("T, m", test_data)
212def test_stumpi(T, m):
213 if T.ndim > 1:
214 T = T.copy()
215 T = T[0]
216
217 ref_stream = aampi(T, m)
218 comp_stream = stumpi(T, m, normalize=False)
219 for i in range(10):
220 t = np.random.rand()
221 ref_stream.update(t)
222 comp_stream.update(t)
223 npt.assert_almost_equal(ref_stream.P_, comp_stream.P_)
224
225
226def test_ostinato():

Callers

nothing calls this directly

Calls 3

aampiClass · 0.90
stumpiClass · 0.90
updateMethod · 0.45

Tested by

no test coverage detected