Class MacQueenKMeans.Instance

    • Method Detail

      • iterate

        protected int iterate​(int iteration)
        Description copied from class: AbstractKMeans.Instance
        Main loop function.
        Specified by:
        iterate in class AbstractKMeans.Instance
        Parameters:
        iteration - Iteration number (beginning at 1)
        Returns:
        Number of reassigned points
      • updateMeanAndAssignment

        private boolean updateMeanAndAssignment​(int minIndex,
                                                NumberVector fv,
                                                DBIDIter iditer)
        Try to update the cluster assignment.
        Parameters:
        minIndex - Cluster to assign to
        fv - Vector
        iditer - Object ID
        Returns:
        true when assignment changed