Click or drag to resize

Permutation Class

Contains several helper functions to deal with permutations.
Inheritance Hierarchy
SystemObject
  FinMathPermutation

Namespace:  FinMath
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static class Permutation

The Permutation type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetInverse(IntegerArray)
Inverts the permutation.
Public methodStatic memberGetInverse(IntegerArray, IntegerArray)
Inverts the permutation.
Public methodStatic memberIsValidPermutation
Checks whether the given permutation is valid.
Public methodStatic memberIsValidTranspositions
Checks whether the given permutation encoded as the set of transpositions is valid.
Public methodStatic memberPermutationToTranspositions(IntegerArray)
Converts the permutation to the set of transpositions.
Public methodStatic memberPermutationToTranspositions(IntegerArray, IntegerArray)
Converts the permutation to the set of transpositions.
Public methodStatic memberRandom(Int32, RandomGenerator)
Generates random permutation.
Public methodStatic memberRandom(Int32, Random)
Generates random permutation.
Public methodStatic memberTranspositionsToPermutation(IntegerArray)
Converts the set of transpositions to the permutation.
Public methodStatic memberTranspositionsToPermutation(IntegerArray, IntegerArray)
Converts the set of transpositions to the permutation.
Top
See Also