de.unihalle.informatik.MiToBo.clustering
Class KMeans

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDOperator
      extended by de.unihalle.informatik.MiToBo.core.operator.MTBOperator
          extended by de.unihalle.informatik.MiToBo.clustering.KMeans
All Implemented Interfaces:
de.unihalle.informatik.Alida.datatypes.ALDConfigurationValidator, de.unihalle.informatik.Alida.operator.events.ALDOperatorExecutionProgressEventListener, EventListener

@ALDAOperator(genericExecutionMode=NONE,
              level=STANDARD)
public class KMeans
extends MTBOperator

Clustering of (feature) vectors with k-means based on Weka library.

Author:
Birgit Moeller, Elisabeth Piltz

Nested Class Summary
 
Nested classes/interfaces inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.operator.ALDOperator.HidingMode
 
Field Summary
 
Fields inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider
 
Constructor Summary
KMeans()
          Default constructor.
 
Method Summary
 MTBTableModel getDataLabels()
          Get assigned labels.
protected  void operate()
          This method does the actual work.
 void setClusterNum(int num)
          Specify number of clusters.
 void setExcludeList(int[] ids)
          Specify attributes to be excluded.
 void setInputData(MTBTableModel inputData)
          Specify input data.
 
Methods inherited from class de.unihalle.informatik.MiToBo.core.operator.MTBOperator
readResolve
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDOperator
addOperatorExecutionProgressEventListener, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getHidingMode, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterNames, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, runOp, runOp, runOp, setConstructionMode, setHidingMode, setName, setParameter, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KMeans

public KMeans()
       throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Default constructor.

Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Method Detail

operate

protected void operate()
                throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
This method does the actual work.

Specified by:
operate in class de.unihalle.informatik.Alida.operator.ALDOperator
Throws:
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

setInputData

public void setInputData(MTBTableModel inputData)
Specify input data.

Parameters:
inputData - Data to be clustered.

setClusterNum

public void setClusterNum(int num)
Specify number of clusters.

Parameters:
num - Number of clusters to be applied.

setExcludeList

public void setExcludeList(int[] ids)
Specify attributes to be excluded.

Parameters:
ids - List of IDs to be ignored.

getDataLabels

public MTBTableModel getDataLabels()
Get assigned labels.

Returns:
Table with cluster labels.


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.