0
I have two vectors (1D array) of different sizes. I want to compute the shortest distance between them using a sliding window.
My code is the following:
import numpy as np
v, l = [1,2,3,4], [1,2,3,4,5,6,7,8,9,10]
[np.linalg.norm(np.subtract(l[i:i+len(v)], v)) for i in range(len(l)-len(v))]
I...