Calculate the distance between two lists of points

前端 未结 0 1410
鱼传尺愫
鱼传尺愫 2021-01-26 11:28

I have the following code I wrote to calculate the distance between two lists of points:

    def calc_dist(self, v1, v2):
        diff = [numpy.abs(v1[i] - v2[i])         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题