Binary Aggregator<T1, T2, TResult>.Aggregate By Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Aggregate | Groups the elements of a vector according to the specified grouping. |
Aggregate | Groups the elements of a vector according to the specified level indexes. |
AggregateBy(Vector<T1>, Vector<T2>, IGrouping, Vector<TResult>)
Groups the elements of a vector according to the specified grouping.
public virtual Vector<TResult> AggregateBy(
Vector<T1> values1,
Vector<T2> values2,
IGrouping grouping,
Vector<TResult>? result
)
Parameters
- values1 Vector<T1>
- A vector of values.
- values2 Vector<T2>
- A vector of values.
- grouping IGrouping
- A grouping.
- result Vector<TResult>
- The vector that is to hold the result. May be null.
Return Value
Vector<TResult>AggregateBy(Vector<T1>, Vector<T2>, Int32[], Vector<TResult>)
Groups the elements of a vector according to the specified level indexes.
public virtual Vector<TResult> AggregateBy(
Vector<T1> values1,
Vector<T2> values2,
int[] levels,
Vector<TResult>? result
)
Parameters
- values1 Vector<T1>
- A vector of values.
- values2 Vector<T2>
- A vector of values.
- levels Int32[]
- An array of level indexes.
- result Vector<TResult>
- The vector that is to hold the result. May be null.