Interface PrimsMinimumSpanningTree.Adapter<T>

    • Method Detail

      • distance

        double distance​(T data,
                        int i,
                        int j)
        Get the distance of two objects
        Parameters:
        data - Data set
        i - First index
        j - Second index
        Returns:
        Distance of objects number i and number j.
      • size

        int size​(T data)
        Get number of objects in dataset
        Returns:
        Size