|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.algorithm.Algorithm net.sourceforge.cilib.algorithm.SingularAlgorithm net.sourceforge.cilib.clustering.kmeans.KMeans
public class KMeans
This algorithm is an implementation of the KMeans Clustering algorithm.
This is the implementation as described in Section 2 of:
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.algorithm.Algorithm |
---|
optimisationProblem |
Constructor Summary | |
---|---|
KMeans()
Create an instance of KMeans. |
|
KMeans(KMeans copy)
Create a copy of the provided instance. |
Method Summary | |
---|---|
void |
algorithmIteration()
Performs a single iteration of the KMeans algorithm. |
OptimisationSolution |
getBestSolution()
Get the best current solution. |
CentroidsInitialisationStrategy |
getCentroidsInitialisationStrategy()
Get the centroid initialisation strategy. |
Algorithm |
getClone()
Create a cloned copy of the current object and return it. |
List<OptimisationSolution> |
getSolutions()
Get the collection of best solutions. |
void |
performInitialisation()
This initialisation of the centroids is handled by the chosen CentroidsInitialisationStrategy . |
void |
setCentroidsInitialisationStrategy(CentroidsInitialisationStrategy centroidsInitialisationStrategy)
Set the current CentroidsInitialisationStrategy. |
Methods inherited from class net.sourceforge.cilib.algorithm.Algorithm |
---|
addAlgorithmListener, addStoppingCondition, get, getAlgorithmList, getIterations, getOptimisationProblem, getPercentageComplete, getStoppingConditions, initialise, isFinished, performIteration, performUninitialisation, removeAlgorithmListener, removeStoppingCondition, reset, run, setOptimisationProblem, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KMeans()
public KMeans(KMeans copy)
rhs
- The instance to copy.Method Detail |
---|
public Algorithm getClone()
getClone
in interface Cloneable
getClone
in class Algorithm
Object.clone()
public void performInitialisation()
CentroidsInitialisationStrategy
.
performInitialisation
in class Algorithm
public void algorithmIteration()
algorithmIteration
in class SingularAlgorithm
public OptimisationSolution getBestSolution()
getBestSolution
in class Algorithm
OptimisationSolution
representing the best solution.public List<OptimisationSolution> getSolutions()
getSolutions
in class Algorithm
Collection<OptimisationSolution>
containing the solutions.public CentroidsInitialisationStrategy getCentroidsInitialisationStrategy()
public void setCentroidsInitialisationStrategy(CentroidsInitialisationStrategy centroidsInitialisationStrategy)
centroidsInitialisationStrategy
- The value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |