Uses of Class
org.cicirello.permutations.Permutation
Packages that use Permutation
Package
Description
Collection of classes related to representing and manipulating permutations.
Implementations of a variety of permutation distance measures.
-
Uses of Permutation in org.cicirello.permutations
Methods in org.cicirello.permutations that return PermutationModifier and TypeMethodDescriptionPermutation.copy()Creates an identical copy of this object.Permutation.getInversePermutation()Computes a Permutation that is the inverse of this Permutation.PermutationIterator.next()Gets the Permutation for the next iteration.Methods in org.cicirello.permutations that return types with arguments of type PermutationModifier and TypeMethodDescriptionPermutation.iterator()Returns an Iterator over all Permutations the length of this Permutation.Methods in org.cicirello.permutations with parameters of type PermutationModifier and TypeMethodDescriptionvoidPermutation.apply(PermutationBinaryOperator operator, Permutation other) Applies a custom binary operator on a pair of Permutation objects.voidPermutation.apply(PermutationFullBinaryOperator operator, Permutation other) Applies a custom binary operator on a pair of Permutation objects.voidPermutationFullBinaryOperator.apply(int[] rawPermutation1, int[] rawPermutation2, Permutation p1, Permutation p2) Applies an operator on the raw representations of a pair of Permutations.voidPermutationFullUnaryOperator.apply(int[] rawPermutation, Permutation p) Applies an operator on the raw representation of a Permutation.voidPermutation.applyThenValidate(PermutationBinaryOperator operator, Permutation other) Applies a custom binary operator on a pair of Permutation objects, and then validates the state of the Permutation.voidPermutation.applyThenValidate(PermutationFullBinaryOperator operator, Permutation other) Applies a custom binary operator on a pair of Permutation objects, and then validates the state of the Permutation.Constructors in org.cicirello.permutations with parameters of type PermutationModifierConstructorDescriptionInitializes a permutation of n integers to be identical to a given permutation.Permutation(Permutation p, int length) Initializes a permutation of the integers in the interval [0, length) based on their relative order in a permutation p.Initializes a PermutationIterator to iterate over all permutations the same length as a given permutation. -
Uses of Permutation in org.cicirello.permutations.distance
Methods in org.cicirello.permutations.distance with parameters of type PermutationModifier and TypeMethodDescriptionintAcyclicEdgeDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intBlockInterchangeDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intCycleDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intCycleEditDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intCyclicEdgeDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intCyclicIndependentDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations, with cyclic independence: distance = min_{i in [0,N)} distance(p1,rotate(p2,i))intCyclicReversalIndependentDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations, with cyclic and reversal independence: distance = min_{i in [0,N)} { distance(p1,rotate(p2,i)), distance(p1,rotate(reverse(p2),i)) }intCyclicRTypeDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intDeviationDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intExactMatchDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intInterchangeDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intKCycleDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intKendallTauDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intLeeDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intPermutationDistanceMeasurer.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intReinsertionDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intReversalDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intReversalIndependentDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations, with reversal independence: distance = min { distance(p1,p2), distance(p1,reverse(p2)) }intRTypeDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.intScrambleDistance.distance(Permutation p1, Permutation p2) intSquaredDeviationDistance.distance(Permutation p1, Permutation p2) Measures the distance between two permutations.doubleCyclicIndependentDistanceDouble.distancef(Permutation p1, Permutation p2) Measures the distance between two permutations, with cyclic independence: distance = min_{i in [0,N)} distance(p1,rotate(p2,i))doubleCyclicReversalIndependentDistanceDouble.distancef(Permutation p1, Permutation p2) Measures the distance between two permutations, with cyclic and reversal independence: distance = min_{i in [0,N)} { distance(p1,rotate(p2,i)), distance(p1,rotate(reverse(p2),i)) }doubleDeviationDistanceNormalized.distancef(Permutation p1, Permutation p2) Measures the distance between two permutationsdoubleDeviationDistanceNormalized2005.distancef(Permutation p1, Permutation p2) Measures the distance between two permutationsdoubleEditDistance.distancef(Permutation p1, Permutation p2) Measures the distance between two permutations.default doublePermutationDistanceMeasurer.distancef(Permutation p1, Permutation p2) Measures the distance between two permutationsdoublePermutationDistanceMeasurerDouble.distancef(Permutation p1, Permutation p2) Measures the distance between two permutationsdoubleReversalIndependentDistanceDouble.distancef(Permutation p1, Permutation p2) Measures the distance between two permutations, with reversal independence: distance = min { distance(p1,p2), distance(p1,reverse(p2)) }doubleWeightedKendallTauDistance.distancef(Permutation p1, Permutation p2) Measures the distance between two permutationsdoubleDeviationDistanceNormalized2005.normalizedDistance(Permutation p1, Permutation p2) Measures the distance between two permutations, normalized to the interval [0.0, 1.0].default doubleNormalizedPermutationDistanceMeasurer.normalizedDistance(Permutation p1, Permutation p2) Measures the distance between two permutations, normalized to the interval [0.0, 1.0].default doubleNormalizedPermutationDistanceMeasurerDouble.normalizedDistance(Permutation p1, Permutation p2) Measures the distance between two permutations, normalized to the interval [0.0, 1.0].