Class PAMMEDSIL.Instance

  • Enclosing class:
    PAMMEDSIL<O>

    protected static class PAMMEDSIL.Instance
    extends PAMSIL.Instance
    Instance for a single dataset.
    Author:
    Erich Schubert
    • Constructor Detail

    • Method Detail

      • run

        protected double run​(ArrayModifiableDBIDs medoids,
                             int maxiter)
        Run the PAMMEDSIL optimization phase.
        Overrides:
        run in class PAMSIL.Instance
        Parameters:
        medoids - Initial medoids list
        maxiter - Maximum number of iterations
        Returns:
        final medoid Silhouette
      • medoidsilhouette

        protected double medoidsilhouette​(IntegerDataStore assignment,
                                          DBIDArrayIter m)
        Evaluate the average medoid Silhouette of the current cluster assignment
        Parameters:
        assignment - cluster assignment
        m - medoid iterator
        Returns:
        Average silhouette width
      • medoidsilhouette

        protected double medoidsilhouette​(IntegerDataStore assignment,
                                          DBIDArrayIter m,
                                          int hoff,
                                          DBIDRef h)
        Evaluate the average medoid Silhouette of the current cluster assignment
        Parameters:
        assignment - cluster assignment
        m - medoid iterator
        hoff - replacement offset
        h - replacement medoid
        Returns:
        Average silhouette width