infomat.algorithms
Class RandomClusterer

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

public class RandomClusterer
extends GroupingAlgorithm

KMeans

Version:
070519
Author:
Magnus Rosell

Constructor Summary
RandomClusterer()
           
RandomClusterer(Properties properties)
           
 
Method Summary
 IObjectGrouping cluster(IMatrix matrix, IObjectSet set)
           
 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
 

Constructor Detail

RandomClusterer

public RandomClusterer()

RandomClusterer

public RandomClusterer(Properties properties)
Method Detail

cluster

public IObjectGrouping cluster(IMatrix matrix,
                               IObjectSet set)
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)