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

Function naive_cac

tests/test_floss.py:35–48  ·  view source on GitHub ↗
(I, L, excl_factor, custom_iac=None)

Source from the content-addressed store, hash-verified

33
34
35def naive_cac(I, L, excl_factor, custom_iac=None):
36 n = I.shape[0]
37 AC = np.zeros(n)
38 CAC = np.zeros(n)
39 AC = naive_nnmark(I)
40 if custom_iac is not None:
41 IAC = custom_iac
42 else:
43 IAC = naive_iac(n)
44 CAC = np.minimum(AC / IAC, 1.0)
45 CAC[: L * excl_factor] = 1.0
46 CAC[-L * excl_factor :] = 1.0
47
48 return CAC
49
50
51def naive_right_mp(T, m, normalize=True, p=2.0, T_subseq_isconstant=None):

Callers 4

test_cacFunction · 0.85
test_cac_custom_iacFunction · 0.85
test_reaFunction · 0.85
test_flussFunction · 0.85

Calls 2

naive_nnmarkFunction · 0.85
naive_iacFunction · 0.85

Tested by

no test coverage detected