def get_distance(v1, v2): total_distance = 0 x = v1; y = v2 s = 1 - np.absolute(x - y) total_distance = np.nansum(s) return total_distance