Eod.
This commit is contained in:
@@ -6,7 +6,7 @@ class Map(object):
|
||||
# and neighbor regions. We can actually cluster in O(n) when we know how
|
||||
# high and wide the clusters are. Once we have that working we go from
|
||||
# there
|
||||
CLUSTER_SIZE = 3 # How many points we want per cluster.
|
||||
CLUSTER_SIZE = 5 # How many points we want per cluster.
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
@@ -131,7 +131,7 @@ class Map(object):
|
||||
def plot_points():
|
||||
for i, p in enumerate(points):
|
||||
plt.plot(p.x, p.y, '')
|
||||
plt.text(p.x, p.y, ' ' + str(p))
|
||||
# plt.text(p.x, p.y, ' ' + str(p))
|
||||
for nb, _ in p.neighbors:
|
||||
# plt.plot([p.x, nb.x], [p.y, nb.y], 'r--')
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user