PermutationFromInversions Method |
Construct an array from a sequence of inversions.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static Permutation FromInversions(
int[] inv
)
Parameters
- inv Int32
- The set of inversions to construct the permutation from.
Return Value
PermutationA permutation generated from a sequence of inversions.
Example
From wikipedia: the permutation 12043 has the inversions (0,2), (1,2) and (3,4). This would be
encoded using the array [22244].
See Also