|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectac.essex.ooechs.kmeans.DataPoint
public class ClusterableObject
This datastructure represents an item of training data in the k means clustering scenario. It consists of a position in n dimensional space and the id of the last centroid it was closest to.
Constructor Summary | |
---|---|
ClusterableObject(double[] positionValues)
Initialises the clusterable object by setting its position in n dimensional space. |
Method Summary | |
---|---|
Centroid |
findClosestCentroid(java.util.Vector<Centroid> centroids)
Finds, from a list of centroids, the centroid that this object is closest to. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClusterableObject(double[] positionValues)
Method Detail |
---|
public Centroid findClosestCentroid(java.util.Vector<Centroid> centroids)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |