public static class KMeans.Centroid extends Object implements KMeans.Coordinate, scala.Product, scala.Serializable
Constructor and Description |
---|
Centroid(int id,
double x,
double y) |
Centroid(int id,
KMeans.Point p) |
Modifier and Type | Method and Description |
---|---|
int |
id() |
String |
toString() |
double |
x() |
double |
y() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, clear, div, euclideanDistance
public Centroid(int id, double x, double y)
public Centroid(int id, KMeans.Point p)
public int id()
public double x()
x
in interface KMeans.Coordinate
public double y()
y
in interface KMeans.Coordinate
public String toString()
toString
in interface KMeans.Coordinate
toString
in class Object
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.