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