Interface Linkage

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      double combine​(int sizex, double dx, int sizey, double dy, int sizej, double dxy)
      Compute combined linkage for two clusters.
      default double initial​(double d, boolean issquare)
      Initialization of the distance matrix.
      default double restore​(double d, boolean issquare)
      Restore a distance to the original scale.
    • Method Detail

      • initial

        default double initial​(double d,
                               boolean issquare)
        Initialization of the distance matrix.
        Parameters:
        d - Distance
        issquare - Flag to indicate the input values are already squared
        Returns:
        Initial value
      • restore

        default double restore​(double d,
                               boolean issquare)
        Restore a distance to the original scale.
        Parameters:
        d - Distance
        issquare - Flag to indicate the input values were already squared
        Returns:
        Initial value
      • combine

        double combine​(int sizex,
                       double dx,
                       int sizey,
                       double dy,
                       int sizej,
                       double dxy)
        Compute combined linkage for two clusters.
        Parameters:
        sizex - Size of first cluster x before merging
        dx - Distance of cluster x to j before merging
        sizey - Size of second cluster y before merging
        dy - Distance of cluster y to j before merging
        sizej - Size of candidate cluster j
        dxy - Distance between clusters x and y before merging
        Returns:
        Combined distance