Ive been looking at Geoff Boeing's excellent blog posts on DBSCAN. The page I'm most interested in is -
http://geoffboeing.com/2014/08/clustering-to-reduce-spatial-data-set-size/
How can I amend this approach to return the center of the largest cluster(cluster center with the surrounded by the most lat/lng points)? Is there a density rating associated with the center point of each cluster?
The core dbscan -
db = DBSCAN(eps=.01, min_samples=1).fit(coordinates)
labels = db.labels_
num_clusters = len(set(labels)) - (1 if -1 in labels else 0)
clusters = pd.Series([coordinates[labels == i] for i in xrange(num_clusters)])
print('Number of clusters: %d' % num_clusters)