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

Function stamp

tests/naive.py:197–211  ·  view source on GitHub ↗
(T_A, m, T_B=None, exclusion_zone=None)

Source from the content-addressed store, hash-verified

195
196
197def stamp(T_A, m, T_B=None, exclusion_zone=None): # pragma: no cover
198 if T_B is None: # self-join
199 result = np.array(
200 [
201 mass_PI(Q, T_A, m, i, exclusion_zone, True)
202 for i, Q in enumerate(core.rolling_window(T_A, m))
203 ],
204 dtype=object,
205 )
206 else:
207 result = np.array(
208 [mass_PI(Q, T_B, m) for Q in core.rolling_window(T_A, m)],
209 dtype=object,
210 )
211 return result
212
213
214def searchsorted_right(a, v):

Callers

nothing calls this directly

Calls 1

mass_PIFunction · 0.85

Tested by

no test coverage detected