net.sourceforge.cilib.functions.clustering.clustercenterstrategies
Class ClusterCentroidStrategy
java.lang.Object
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
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 |
ClusterCentroidStrategy
public ClusterCentroidStrategy()
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.