Interface PermutationDistanceMeasurerDouble

    • Method Detail

      • distancef

        double distancef​(Permutation p1,
                         Permutation p2)
        Measures the distance between two permutations
        Parameters:
        p1 - first permutation
        p2 - second permutation
        Returns:
        distance between p1 and p2
        Throws:
        IllegalArgumentException - if p1.length() is not equal to p2.length().