public abstract static class KMeansPivotChooser.CenterThread
extends java.lang.Thread
Modifier | Constructor and Description |
---|---|
protected |
KMeansPivotChooser.CenterThread(AbstractObjectList<LocalAbstractObject> cluster,
LocalAbstractObject originalPivot)
Creates a new thread for computing the "center" of a cluster.
|
Modifier and Type | Method and Description |
---|---|
LocalAbstractObject |
getClustroid() |
protected abstract void |
obtainCenter(AbstractObjectList<LocalAbstractObject> samplePivots)
Compute/find new centroid/center and assign it to @{link #clustroid}.
|
void |
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
protected KMeansPivotChooser.CenterThread(AbstractObjectList<LocalAbstractObject> cluster, LocalAbstractObject originalPivot)
cluster
- the list of objects that form a clusteroriginalPivot
- the original pivot that is improvedpublic LocalAbstractObject getClustroid()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected abstract void obtainCenter(AbstractObjectList<LocalAbstractObject> samplePivots)
samplePivots
- list of objects to be used to get new center from