mvtsa.representation.knn_profile#
- mvtsa.representation.knn_profile(X, w, k=3, exclusion=0.5, normalize=True)[source]#
Indices and distances of the
knearest subsequences of every subsequence of widthw.Returns
(idx, dist), both(N, k)withN = T - w + 1; the exclusion zone around the query isexclusion * wsamples. Withnormalize=Falsethe plain Euclidean distance is used, which keeps level and amplitude differences visible.