mirror of
https://github.com/muesli/kmeans.git
synced 2025-10-05 07:36:51 +08:00
Use kmeans.Points in examples
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user