Browse Source

output cluster size

Xi Ruoyao 5 years ago
parent
commit
c7be752168
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main.py

+ 1 - 0
main.py

@@ -68,6 +68,7 @@ if __name__ == '__main__':
         if k != -1:
             print("cluster %d:" % k)
             center = np.array([np.average(xy[:, 0]), np.average(xy[:, 1])])
+            print("size =", len(xy))
             print("center = %f, %f" % (center[0], center[1]))
             center_p = namedtuple("point", "lon lat")(center[0], center[1])
             rad = 0