Class Predefined

    • Field Detail

      • initialMeans

        double[][] initialMeans
        Initial means to return.
    • Constructor Detail

      • Predefined

        public Predefined​(double[][] initialMeans)
        Constructor.
        Parameters:
        initialMeans - Initial means
    • Method Detail

      • setInitialMeans

        public void setInitialMeans​(java.util.List<double[]> initialMeans)
        Set the initial means. Important notice: Use with care - the means are not copied!
        Parameters:
        initialMeans - initial means.
      • setInitialClusters

        public void setInitialClusters​(java.util.List<? extends Cluster<? extends MeanModel>> initialMeans)
        Set the initial means. Important notice: Use with care - the means are not copied!
        Parameters:
        initialMeans - initial means.
      • setInitialMeans

        public void setInitialMeans​(double[][] initialMeans)
        Set the initial means. Important notice: Use with care - the means are not copied!
        Parameters:
        initialMeans - initial means.
      • chooseInitialMeans

        public double[][] chooseInitialMeans​(Relation<? extends NumberVector> relation,
                                             int k,
                                             NumberVectorDistance<?> distance)
        Description copied from interface: KMeansInitialization
        Choose initial means
        Parameters:
        relation - Relation
        k - Parameter k
        distance - Distance function
        Returns:
        List of chosen means for k-means