Class ClusterPrototypeMergeHistory


  • public class ClusterPrototypeMergeHistory
    extends ClusterMergeHistory
    Cluster merge history with additional cluster prototypes (for HACAM, MedoidLinkage, and MiniMax clustering)
    Since:
    0.8.0
    Author:
    Erich Schubert
    • Field Detail

      • prototypes

        protected ArrayDBIDs prototypes
        Cluster prototypes
    • Constructor Detail

      • ClusterPrototypeMergeHistory

        public ClusterPrototypeMergeHistory​(ArrayDBIDs ids,
                                            int[] merges,
                                            double[] distances,
                                            int[] sizes,
                                            boolean isSquared,
                                            ArrayDBIDs prototypes)
        Constructor.
        Parameters:
        ids - Initial object ids
        merges - Merge history 2*(N-1) values
        distances - Distances
        sizes - Cluster sizes
        isSquared - If distances are squared distances
        prototypes - Cluster prototypes
    • Method Detail

      • prototype

        public DBID prototype​(int i)
        Get the prototype of cluster i.
        Parameters:
        i - Merge number
        Returns:
        Prototype