Index.Create Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Create<T>(IEnumerable<T>) | Creates a new index. |
Create<T1, T2>(IList<T1>, IList<T2>) | Creates a new hierarchical index with two levels. |
Create<T1, T2, T3>(IList<T1>, IList<T2>, IList<T3>) | Constructs a new 3 level index from the specified level values. |
Create<T>(IEnumerable<T>)
Creates a new index.
public static Index<T> Create<T>(
IEnumerable<T> values
)
Parameters
- values IEnumerable<T>
- A sequence index values.
Type Parameters
- T
Return Value
Index<T>The new index.
Create<T1, T2>(IList<T1>, IList<T2>)
Creates a new hierarchical index with two levels.
public static Index<(T1 , T2 )> Create<T1, T2>(
IList<T1> level1,
IList<T2> level2
)
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.
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.
Create<T1, T2, T3>(IList<T1>, IList<T2>, IList<T3>)
Constructs a new 3 level index from the specified level values.
public static Index<(T1 , T2 , T3 )> Create<T1, T2, T3>(
IList<T1> level1,
IList<T2> level2,
IList<T3> level3
)
Parameters
- level1 IList<T1>
- A list of values for the first level.
- level2 IList<T2>
- A list of values for the second level.
- level3 IList<T3>
- A list of values for the third level.
Type Parameters
- T1
- T2
- T3
Return Value
Index<ValueTuple<T1, T2, T3>>A new index with the specified values.