Interface PermutationDistanceMeasurerDouble

All Known Subinterfaces:
NormalizedPermutationDistanceMeasurer, NormalizedPermutationDistanceMeasurerDouble, PermutationDistanceMeasurer
All Known Implementing Classes:
AcyclicEdgeDistance, BlockInterchangeDistance, CycleDistance, CycleEditDistance, CyclicEdgeDistance, CyclicIndependentDistance, CyclicIndependentDistanceDouble, CyclicReversalIndependentDistance, CyclicReversalIndependentDistanceDouble, CyclicRTypeDistance, DeviationDistance, DeviationDistanceNormalized, DeviationDistanceNormalized2005, EditDistance, ExactMatchDistance, InterchangeDistance, KCycleDistance, KendallTauDistance, LeeDistance, ReinsertionDistance, ReversalDistance, ReversalIndependentDistance, ReversalIndependentDistanceDouble, RTypeDistance, ScrambleDistance, SquaredDeviationDistance, WeightedKendallTauDistance

public interface PermutationDistanceMeasurerDouble
Implement this interface, PermutationDistanceMeasurerDouble, to define a distance metric for permutations, where the distance is a floating-point value.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Measures the distance between two permutations
  • Method Details

    • 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().