Class FarthestPoints<O>

  • Type Parameters:
    O - Object type for kMedoids and kMedians
    All Implemented Interfaces:
    KMeansInitialization, KMedoidsInitialization<O>
    Direct Known Subclasses:
    FarthestSumPoints

    public class FarthestPoints<O>
    extends AbstractKMeansInitialization
    implements KMedoidsInitialization<O>
    K-Means initialization by repeatedly choosing the farthest point (by the minimum distance to earlier points).

    Note: this is less random than other initializations, so running multiple times will be more likely to return the same local minima.

    Since:
    0.6.0
    Author:
    Erich Schubert
    • Field Detail

      • dropfirst

        boolean dropfirst
        Discard the first vector.
    • Constructor Detail

      • FarthestPoints

        public FarthestPoints​(RandomFactory rnd,
                              boolean dropfirst)
        Constructor.
        Parameters:
        rnd - Random generator.
        dropfirst - Flag to discard the first vector.