scipy 的 kdtree 函数 return 距离是什么单位?

What unit does scipy's kdtree function return distance in?

我是 KD 树的新手,我正在使用它们为一个数组 (search_array) 中的每个点找到最近的邻居,与第二个数组 ([=26) 中的所有点进行比较=]).

两个数组的格式如下:

array([[ 51.54094696,   0.09767043],
   [ 51.53620148,   0.0798    ],
   [ 51.53620148,   0.0798    ],
   ..., 
   [ 51.54118347,  -0.08202313],
   [ 48.84996033,   2.32329845],
   [ 40.42570496,  -3.70100427]])

这是我的代码:

def kdtree(search_points, vec_points):
mytree = scipy.spatial.cKDTree(search_points)
dist, indexes = mytree.query(vec_points)
return indexes, dist

result = kdtree(vec_array,search_array)

并且输出:

(array([1361, 1339, 1339, ..., 1139, 1766, 1711]),
array([ 0.01365104,  0.00059667,  0.00059667, ...,  0.00151025,
         0.00754338,  0.00203098]))

第二个数组明明是距离,但不知道是什么单位,请高人指教,不胜感激!

正如 Warren 在上面的评论中所指出的那样,单位与输入数组中的单位相同。