mvtsa.representation.knn_profile#

mvtsa.representation.knn_profile(X, w, k=3, exclusion=0.5, normalize=True)[source]#

Indices and distances of the k nearest subsequences of every subsequence of width w.

Returns (idx, dist), both (N, k) with N = T - w + 1; the exclusion zone around the query is exclusion * w samples. With normalize=False the plain Euclidean distance is used, which keeps level and amplitude differences visible.