public static class KMeansPivotChooser.SelectClustroidThread extends KMeansPivotChooser.CenterThread
Constructor and Description |
---|
KMeansPivotChooser.SelectClustroidThread(AbstractObjectList<LocalAbstractObject> cluster,
LocalAbstractObject originalPivot)
Creates a new SelectClustroidThread for computing the "center" of a cluster.
|
Modifier and Type | Method and Description |
---|---|
protected void |
obtainCenter(AbstractObjectList<LocalAbstractObject> samplePivots)
Compute/find new centroid/center and assign it to @{link #clustroid}.
|
getClustroid, run
activeCount, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public KMeansPivotChooser.SelectClustroidThread(AbstractObjectList<LocalAbstractObject> cluster, LocalAbstractObject originalPivot)
cluster
- the list of objects that form a clusteroriginalPivot
- the original pivot that is improvedprotected void obtainCenter(AbstractObjectList<LocalAbstractObject> samplePivots)
KMeansPivotChooser.CenterThread
obtainCenter
in class KMeansPivotChooser.CenterThread
samplePivots
- list of objects to be used to get new center from