public static class KMeans.Centroid extends KMeans.Point
Modifier and Type | Field and Description |
---|---|
int |
id |
x, y
Constructor and Description |
---|
Centroid() |
Centroid(int id,
double x,
double y) |
Centroid(int id,
KMeans.Point p) |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
add, clear, div, euclideanDistance
public Centroid()
public Centroid(int id, double x, double y)
public Centroid(int id, KMeans.Point p)
public String toString()
toString
in class KMeans.Point
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.