[英]Closest, index and minimum distance between points
I have a code that calculates the distance between closest points in a list, by using cdist.我有一个代码可以使用 cdist 计算列表中最近点之间的距离。
However, I would like an improved version also gives me the index of the Points .但是,我想改进的版本也给我Points的索引。
distance.cdist(Coordinates,Points).min(axis=1)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.