Interface GeometricLinkage

  • All Superinterfaces:
    Linkage
    All Known Implementing Classes:
    CentroidLinkage, MedianLinkage, WardLinkage

    public interface GeometricLinkage
    extends Linkage
    Geometric linkages, in addition to the combination with Lance-Williams-Equations, these linkages can also be computed by aggregating data points (for vector data only).
    Since:
    0.8.0
    Author:
    Robert Gehde
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double distance​(double[] x, int sizex, double[] y, int sizey)
      Distance of two aggregated clusters.
      double[] merge​(double[] x, int sizex, double[] y, int sizey)
      Merge the aggregated vectors.
    • Method Detail

      • merge

        double[] merge​(double[] x,
                       int sizex,
                       double[] y,
                       int sizey)
        Merge the aggregated vectors.
        Parameters:
        x - Center of the first cluster
        sizex - Weight of the first cluster
        y - Center of the second cluster
        sizey - Weight of the second cluster
        Returns:
        Combined vector
      • distance

        double distance​(double[] x,
                        int sizex,
                        double[] y,
                        int sizey)
        Distance of two aggregated clusters.
        Parameters:
        x - Center of the first cluster
        sizex - Weight of the first cluster
        y - Center of the second cluster
        sizey - Weight of the second cluster
        Returns:
        Distance