Use kmeans.Points in examples

This commit is contained in:
Christian Muehlhaeuser
2018-05-26 11:32:25 +02:00
parent 5e6ecbb5eb
commit af45c949f7
3 changed files with 3 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ import (
func main() {
// set up "random" data points (float64 values between 0.0 and 1.0)
km := kmeans.New()
d := []kmeans.Point{}
var d kmeans.Points
for x := 0; x < 255; x += 4 {
for y := 0; y < 255; y += 4 {
d = append(d, kmeans.Point{