org.carrot2.matrix.factorization.seeding
Class KMeansSeedingStrategyFactory

java.lang.Object
  extended by org.carrot2.matrix.factorization.seeding.KMeansSeedingStrategyFactory
All Implemented Interfaces:
ISeedingStrategyFactory

public class KMeansSeedingStrategyFactory
extends Object
implements ISeedingStrategyFactory

Seeding based on a k-means clustering algorithm.


Constructor Summary
KMeansSeedingStrategyFactory()
           
 
Method Summary
 ISeedingStrategy createSeedingStrategy()
          Creates a ISeedingStrategy.
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KMeansSeedingStrategyFactory

public KMeansSeedingStrategyFactory()
Method Detail

createSeedingStrategy

public ISeedingStrategy createSeedingStrategy()
Description copied from interface: ISeedingStrategyFactory
Creates a ISeedingStrategy.

Specified by:
createSeedingStrategy in interface ISeedingStrategyFactory

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.

Parameters:
maxIterations -

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) Dawid Weiss, Stanislaw Osinski