Class KMeans

    • Field Detail

      • k

        protected int k
        The number of cluster the data will be partitioned into
    • Constructor Detail

      • KMeans

        public KMeans​(int clusters)
        Create a KMeans clusterer
        Parameters:
        clusters - the number of cluster to partition the data into
    • Method Detail

      • computeStartingClusters

        protected FuzzyHash[] computeStartingClusters​(Hash[] hashes)
      • computeKMeans

        protected void computeKMeans​(int[] cluster,
                                     FuzzyHash[] clusterMeans,
                                     Hash[] hashes,
                                     int maxIter)