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

Function apply_exclusion_zone

tests/naive.py:72–76  ·  view source on GitHub ↗
(a, trivial_idx, excl_zone, val)

Source from the content-addressed store, hash-verified

70
71
72def apply_exclusion_zone(a, trivial_idx, excl_zone, val):
73 start = max(0, trivial_idx - excl_zone)
74 stop = min(a.shape[-1], trivial_idx + excl_zone + 1)
75 for i in range(start, stop):
76 a[..., i] = val
77
78
79def distance_profile(Q, T, m):

Callers 9

mass_PIFunction · 0.70
stumpFunction · 0.70
aampFunction · 0.70
multi_distance_profileFunction · 0.70
updateMethod · 0.70
updateMethod · 0.70
prescrumpFunction · 0.70
prescraampFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected