Class SingleAssignmentKMedoids.Instance

  • Enclosing class:
    SingleAssignmentKMedoids<O>

    protected static class SingleAssignmentKMedoids.Instance
    extends java.lang.Object
    Instance for a single dataset.
    Author:
    Erich Schubert
    • Constructor Detail

    • Method Detail

      • run

        protected double run​(ArrayModifiableDBIDs medoids)
        Run the PAM optimization phase.
        Parameters:
        medoids - Medoids list
        Returns:
        final cost
      • assignToNearestCluster

        protected double assignToNearestCluster​(ArrayModifiableDBIDs means)
        Assign each object to the nearest cluster, return the cost.
        Parameters:
        means - Object centroids
        Returns:
        Assignment cost