Class AbstractCFKMeansInitialization

    • Constructor Detail

      • AbstractCFKMeansInitialization

        public AbstractCFKMeansInitialization​(RandomFactory rf)
        Constructor.
        Parameters:
        rf - Random number generator
    • Method Detail

      • chooseInitialMeans

        public abstract double[][] chooseInitialMeans​(CFTree<?> tree,
                                                      java.util.List<? extends ClusterFeature> cfs,
                                                      int k)
        Build the initial models.
        Parameters:
        tree - CF tree
        cfs - Cluster features of the tree (may be ignored for tree-based initializations, should be an array list for efficiency)
        k - Number of clusters.
        Returns:
        initial cluster means