Package org.carrot2.math.matrix
Class KMeansSeedingStrategyFactory
java.lang.Object
org.carrot2.math.matrix.KMeansSeedingStrategyFactory
- All Implemented Interfaces:
SeedingStrategyFactory
public class KMeansSeedingStrategyFactory extends Object implements SeedingStrategyFactory
Seeding based on a k-means clustering algorithm.
-
Constructor Summary
Constructors Constructor Description KMeansSeedingStrategyFactory()
-
Method Summary
Modifier and Type Method Description SeedingStrategy
createSeedingStrategy()
Creates aSeedingStrategy
.int
getMaxIterations()
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.String
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
-