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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeedingStrategycreateSeedingStrategy()Creates aSeedingStrategy.intgetMaxIterations()Returns the maximum number of iterations the k-means algorithm is allowed to perform.voidsetMaxIterations(int maxIterations)Sets the maximum number of iterations the k-means algorithm is allowed to perform.StringtoString()
-
-
-
Method Detail
-
createSeedingStrategy
public SeedingStrategy createSeedingStrategy()
Description copied from interface:SeedingStrategyFactoryCreates aSeedingStrategy.- Specified by:
createSeedingStrategyin 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.
-
-