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

Function PI

tests/naive.py:520–531  ·  view source on GitHub ↗
(D, trivial_idx, excl_zone)

Source from the content-addressed store, hash-verified

518
519
520def PI(D, trivial_idx, excl_zone):
521 d, k = D.shape
522
523 P = np.full((d, k), np.inf)
524 I = np.ones((d, k), dtype="int64") * -1
525
526 for i in range(d):
527 col_mask = P[i] > D[i]
528 P[i, col_mask] = D[i, col_mask]
529 I[i, col_mask] = trivial_idx
530
531 return P, I
532
533
534def apply_include(D, include):

Callers 2

mstumpFunction · 0.85
maampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected