Class BestOfMultipleKMeans<V extends NumberVector,​M extends MeanModel>

  • Type Parameters:
    V - Vector type
    M - Model type
    All Implemented Interfaces:
    Algorithm, ClusteringAlgorithm<Clustering<M>>, KMeans<V,​M>

    public class BestOfMultipleKMeans<V extends NumberVector,​M extends MeanModel>
    extends java.lang.Object
    implements KMeans<V,​M>
    Run K-Means multiple times, and keep the best run.
    Since:
    0.6.0
    Author:
    Stephan Baier, Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        The logger for this class.
      • trials

        private int trials
        Number of trials to do.
    • Constructor Detail

      • BestOfMultipleKMeans

        public BestOfMultipleKMeans​(int trials,
                                    KMeans<V,​M> innerkMeans,
                                    KMeansQualityMeasure<? super V> qualityMeasure)
        Constructor.
        Parameters:
        trials - Number of trials to do.
        innerkMeans - K-Means variant to actually use.
        qualityMeasure - Quality measure