(T, m)
| 210 | |
| 211 | @pytest.mark.parametrize("T, m", test_data) |
| 212 | def 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 | |
| 226 | def test_ostinato(): |