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

Function test_get_first_mstump_profile

tests/test_mstump.py:112–137  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

110
111@pytest.mark.parametrize("T, m", test_data)
112def test_get_first_mstump_profile(T, m):
113 excl_zone = int(np.ceil(m / 4))
114 start = 0
115
116 ref_P, ref_I = naive.mstump(T, m, excl_zone)
117 ref_P = ref_P[:, start]
118 ref_I = ref_I[:, start]
119
120 T_subseq_isconstant = core.rolling_isconstant(T, m)
121 M_T, Σ_T = core.compute_mean_std(T, m)
122 comp_P, comp_I = _get_first_mstump_profile(
123 start,
124 T,
125 T,
126 m,
127 excl_zone,
128 M_T,
129 Σ_T,
130 M_T,
131 Σ_T,
132 T_subseq_isconstant,
133 T_subseq_isconstant,
134 )
135
136 npt.assert_almost_equal(ref_P, comp_P)
137 npt.assert_equal(ref_I, comp_I)
138
139
140@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected