There are different methods to calculate distance between two vectors of the same length: Euclidean, Manhattan, Hamming ...
I\'m wondering about any method that woul
You cannot directly compute distances between vectors of differing length.
All suggestions here start with a function that maps the lower-length vector to a higher-length one, then doing the calculation as normal.
There are many, many functions (infinitely many, in fact) that one can use:
Since the result of the distance calculation strongly depends on the function that converts the shorter vector to the longer, everybody needs to be clear about what function is used. Either because everybody in the fields agrees that only one function makes sense, or because the function used in the conversion is noted down.