Class LinearMemoryNNChain.Instance<O extends NumberVector>

  • Type Parameters:
    O - vector type
    Enclosing class:
    LinearMemoryNNChain<O extends NumberVector>

    public static class LinearMemoryNNChain.Instance<O extends NumberVector>
    extends java.lang.Object
    Main worker instance of NNChain.
    Author:
    Erich Schubert
    • Constructor Detail

      • Instance

        public Instance​(GeometricLinkage linkage)
        Constructor.
        Parameters:
        linkage - Linkage
    • Method Detail

      • merge

        protected void merge​(int end,
                             double[][] clusters,
                             ClusterMergeHistoryBuilder builder,
                             int[] clustermap,
                             double mindist,
                             int x,
                             int y)
        Execute the cluster merge.
        Parameters:
        end - Active set size
        clusters - Array of cluster centers
        builder - Hierarchy builder
        clustermap - Cluster assignment
        mindist - Distance that was used for merging
        x - First matrix position
        y - Second matrix position