infomat.algorithms
Class KMeans

java.lang.Object
  extended by infomat.algorithms.GroupingAlgorithm
      extended by infomat.algorithms.KMeans
All Implemented Interfaces:
HasProperties, UniqueIdentifiable

public class KMeans
extends GroupingAlgorithm

KMeans

Version:
070519
Author:
Magnus Rosell

Field Summary
static int kmeansClusteringNumber
           
 
Constructor Summary
KMeans()
           
KMeans(Properties properties)
           
 
Method Summary
 IObjectGrouping cluster(IMatrix matrix, IObjectSet ioset)
           
 java.lang.String getAlgorithmName()
           
 java.lang.String getInfoString()
           
 Properties getProperties()
           
 java.lang.Object getPropertyValue(java.lang.String name)
           
 java.util.Vector getPropertyVector()
           
 UniqueIdentifier getUniqueIdentifier()
           
 void setProperties(Properties properties)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 void setUniqueIdentifier(UniqueIdentifier uniqueIdentifier)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kmeansClusteringNumber

public static int kmeansClusteringNumber
Constructor Detail

KMeans

public KMeans()

KMeans

public KMeans(Properties properties)
Method Detail

cluster

public IObjectGrouping cluster(IMatrix matrix,
                               IObjectSet ioset)
Specified by:
cluster in class GroupingAlgorithm

getInfoString

public java.lang.String getInfoString()
Specified by:
getInfoString in class GroupingAlgorithm

getAlgorithmName

public java.lang.String getAlgorithmName()
Specified by:
getAlgorithmName in class GroupingAlgorithm

getPropertyVector

public java.util.Vector getPropertyVector()
Specified by:
getPropertyVector in class GroupingAlgorithm

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.String name)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws PropertyNotFoundException
Throws:
PropertyNotFoundException

getProperties

public Properties getProperties()

setProperties

public void setProperties(Properties properties)

getUniqueIdentifier

public UniqueIdentifier getUniqueIdentifier()

setUniqueIdentifier

public void setUniqueIdentifier(UniqueIdentifier uniqueIdentifier)