Index.Create Grouped Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Create | Creates a new hierarchical index with two levels and groups the entries by the first level. |
Create | Creates a new hierarchical index with two levels and groups the entries by the first level. |
CreateGrouped<T1, T2>(IList<T1>, IList<T2>, Permutation)
Creates a new hierarchical index with two levels and groups the entries
by the first level.
public static Index<(T1 , T2 )> CreateGrouped<T1, T2>(
IList<T1> level1,
IList<T2> level2,
out Permutation permutation
)
Parameters
- level1 IList<T1>
- A list of values containing the keys for the first level.
- level2 IList<T2>
- A list of values containing the keys for the second level.
- permutation Permutation
- 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.
Return Value
Index<ValueTuple<T1, T2>>The new index.
CreateGrouped<T1, T2, T3>(IList<T1>, IList<T2>, IList<T3>, Permutation)
Creates a new hierarchical index with two levels and groups the entries
by the first level.
public static Index<(T1 , T2 , T3 )> CreateGrouped<T1, T2, T3>(
IList<T1> level1,
IList<T2> level2,
IList<T3> level3,
out Permutation permutation
)
Parameters
- level1 IList<T1>
- A list of values containing the keys for the first level.
- level2 IList<T2>
- A list of values containing the keys for the second level.
- level3 IList<T3>
- A list of values containing the keys for the third level.
- permutation Permutation
- 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
Index<ValueTuple<T1, T2, T3>>The new index.