net.sourceforge.cilib.clustering.kmeans
Interface CentroidsInitialisationStrategy
- All Superinterfaces:
- Cloneable, Serializable
- All Known Implementing Classes:
- DataSetBasedCentroidsInitialisationStrategy, RandomCentroidsInitialisationStrategy
public interface CentroidsInitialisationStrategy
- extends Serializable, Cloneable
This strategy allows for different ways of initializing the centroids of a clustering.
The two main approaches are either:
- Author:
- Theuns Cloete
initialise
Vector initialise(ClusteringProblem problem,
ClusterableDataSet dataset)
- Initialize the centroid vectors for a clustering. Each centroid is appended to a
Vector
that represents all the centroids. This Vector
is then
returned. The problem and/or dataset that are currently being clustered can be used to
get information about the clustering, such as the dimension of the search space and
centroids.
- Parameters:
problem
- the ClusteringProblem
currently being optimizeddataset
- the ClusterableDataSet
currently being clustered
- Returns:
- a
Vector
that represents all the centroids
Copyright © 2009 CIRG. All Rights Reserved.