Creates a new hierarchical index with two levels and groups the entries
by the first level.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Index<(T1 , T2 , T3 )> CreateGrouped<T1, T2, T3>(
IList<T1> level1,
IList<T2> level2,
IList<T3> level3,
out Permutation permutation
)
Public Shared Function CreateGrouped(Of T1, T2, T3) (
level1 As IList(Of T1),
level2 As IList(Of T2),
level3 As IList(Of T3),
<OutAttribute> ByRef permutation As Permutation
) As Index(Of ( As T1, As T2, As T3))
public:
generic<typename T1, typename T2, typename T3>
static Index<ValueTuple<T1, T2, T3>>^ CreateGrouped(
IList<T1>^ level1,
IList<T2>^ level2,
IList<T3>^ level3,
[OutAttribute] Permutation^% permutation
)
static member CreateGrouped :
level1 : IList<'T1> *
level2 : IList<'T2> *
level3 : IList<'T3> *
permutation : Permutation byref -> Index<ValueTuple<'T1, 'T2, 'T3>>
Parameters
- level1
- Type: System.Collections.GenericIListT1
A list of values containing the keys for the first level. - level2
- Type: System.Collections.GenericIListT2
A list of values containing the keys for the second level. - level3
- Type: System.Collections.GenericIListT3
A list of values containing the keys for the third level. - permutation
- Type: Extreme.MathematicsPermutation
On return, a permutation that specifies the new order
of the elements.
Type Parameters
- T1
- The type of the keys at the first level of the index.
- T2
- The type of the keys at the second level of the index.
- T3
- The type of the keys at the third level of the index.
Return Value
Type:
IndexValueTupleT1,
T2,
T3The new index.
Reference