Rename Run to Partition

This commit is contained in:
Christian Muehlhaeuser
2018-05-26 08:07:28 +02:00
parent 991ba4a3b2
commit 41c52813b2
4 changed files with 6 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ func main() {
fmt.Printf("%d data points\n", len(d))
// Partition the data points into 4 clusters
clusters, _ := km.Run(d, 4)
clusters, _ := km.Partition(d, 4)
for i, c := range clusters {
fmt.Printf("Cluster: %d\n", i)