repositorypackage
0.0.0-20180101124245-a9d970fa57ef
Repository: https://github.com/lfritz/clustering.git
Documentation: pkg.go.dev
# README
clustering
Go implementations of the DBSCAN and k-means clustering algorithms, the k-d tree spatial index and some functions to generate and visualize sample data.
Example Output
Below are two examples that show the algorithms in action. In the output, clusters are indicated by colors; points shown in gray were marked as noise.
The first example is 150 points clustered by k-means:
and DBSCAN:
The second example includes a cluster of points distributed in a non-convex shape. K-means doesn't recognize it:
but DBSCAN does: