Package org.carrot2.math.matrix
Class KMeansSeedingStrategyFactory
java.lang.Object
org.carrot2.math.matrix.KMeansSeedingStrategyFactory
- All Implemented Interfaces:
SeedingStrategyFactory
Seeding based on a k-means clustering algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates aSeedingStrategy
.int
Returns the maximum number of iterations the k-means algorithm is allowed to perform.void
setMaxIterations
(int maxIterations) Sets the maximum number of iterations the k-means algorithm is allowed to perform.toString()
-
Constructor Details
-
KMeansSeedingStrategyFactory
public KMeansSeedingStrategyFactory()
-
-
Method Details
-
createSeedingStrategy
Description copied from interface:SeedingStrategyFactory
Creates aSeedingStrategy
.- Specified by:
createSeedingStrategy
in interfaceSeedingStrategyFactory
-
getMaxIterations
public int getMaxIterations()Returns the maximum number of iterations the k-means algorithm is allowed to perform. -
setMaxIterations
public void setMaxIterations(int maxIterations) Sets the maximum number of iterations the k-means algorithm is allowed to perform. -
toString
-