net.sourceforge.cilib.functions.clustering.clustercenterstrategies
Class ClusterCentroidStrategy

java.lang.Object
  extended by net.sourceforge.cilib.functions.clustering.clustercenterstrategies.ClusterCentroidStrategy
All Implemented Interfaces:
Serializable, ClusterCenterStrategy

public class ClusterCentroidStrategy
extends Object
implements ClusterCenterStrategy

The center of a cluster is interpreted as the centroid of a cluster.

Author:
Theuns Cloete
See Also:
Serialized Form

Constructor Summary
ClusterCentroidStrategy()
           
 
Method Summary
 Vector getCenter(int i)
          In this case, we are interested in the centroid of the cluster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterCentroidStrategy

public ClusterCentroidStrategy()
Method Detail

getCenter

public Vector getCenter(int i)
In this case, we are interested in the centroid of the cluster.

Specified by:
getCenter in interface ClusterCenterStrategy
Parameters:
i - The integer representing the cluster for which the centroid should be returned
Returns:
the centroid of cluster i


Copyright © 2009 CIRG. All Rights Reserved.