Click or drag to resize

PermutationFromInversions Method

Construct an array from a sequence of inversions.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static Permutation FromInversions(
	int[] inv
)

Parameters

inv  Int32
The set of inversions to construct the permutation from.

Return Value

Permutation
A 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