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

Function aamp_distance_matrix

tests/naive.py:119–128  ·  view source on GitHub ↗
(T_A, T_B, m, p)

Source from the content-addressed store, hash-verified

117
118
119def aamp_distance_matrix(T_A, T_B, m, p):
120 T_A[np.isinf(T_A)] = np.nan
121 T_B[np.isinf(T_B)] = np.nan
122
123 rolling_T_A = core.rolling_window(T_A, m)
124 rolling_T_B = core.rolling_window(T_B, m)
125
126 distance_matrix = cdist(rolling_T_A, rolling_T_B, metric="minkowski", p=p)
127
128 return distance_matrix
129
130
131def mass_PI(

Callers 2

prescraampFunction · 0.85
scraampFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected