This commit is contained in:
UmbertoJr 2019-10-23 21:11:32 +02:00
parent 7ac6af5900
commit b267fb2ace
2 changed files with 3 additions and 0 deletions

View File

@ -60,4 +60,5 @@ class Instance:
for i in range(self.nPoints):
for j in range(i, self.nPoints):
self.dist_matrix[i, j] = self.distance_euc(self.points[i][1:3], self.points[j][1:3])
self.dist_matrix += self.dist_matrix.T

2
run.py
View File

@ -11,5 +11,7 @@ def run():
instance.plot_data()
if __name__ == '__main__':
run()