Binary Aggregator Group<TResult>.Aggregate Into 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 | Aggregates the specified range of elements of a vector and returns the result. |
Aggregate | Aggregates the specified range of elements of a vector and returns the result. |
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. |
AggregateInto<T>(IVector, IVector, IGrouping, IVector)
Aggregates the specified range of elements of a vector and returns the result.
public IVector AggregateInto<T>(
IVector values1,
IVector values2,
IGrouping grouping,
IVector? result
)
Parameters
- values1 IVector
- A vector of values.
- values2 IVector
- A vector of values.
- grouping IGrouping
- An object that specifies how the elements of values1 and values2 should be grouped.
- result IVector
- The vector that is to hold the result. May be null.
Type Parameters
- T
- The element type of values1 and values2.
Return Value
IVectorThe result of the aggregation.
Exceptions
Argument | values1 is null. -or- values2 is null. |
Dimension | The length of values1 does not equal the length of values2. |
AggregateInto<T>(IVector, IVector, IGrouping, Vector<TResult>)
Aggregates the specified range of elements of a vector and returns the result.
public Vector<TResult> AggregateInto<T>(
IVector values1,
IVector values2,
IGrouping grouping,
Vector<TResult>? result
)
Parameters
- values1 IVector
- A vector of values.
- values2 IVector
- A vector of values.
- grouping IGrouping
- An object that specifies how the elements of values1 and values2 should be grouped.
- result Vector<TResult>
- The vector that is to hold the result. May be null.
Type Parameters
- T
- The element type of values1 and values2.
Return Value
Vector<TResult>The result of the aggregation.
Exceptions
Argument | values1 is null. -or- values2 is null. |
Dimension | The length of values1 does not equal the length of values2. |
AggregateInto<T>(Vector<T>, Vector<T>, IGrouping, Vector<TResult>)
Groups the elements of a vector according to the specified grouping.
public Vector<TResult> AggregateInto<T>(
Vector<T> values1,
Vector<T> values2,
IGrouping grouping,
Vector<TResult>? result
)
Parameters
- values1 Vector<T>
- A vector of values.
- values2 Vector<T>
- A vector of values.
- grouping IGrouping
- A grouping.
- result Vector<TResult>
- The vector that is to hold the result. May be null.
Type Parameters
- T
Return Value
Vector<TResult>AggregateInto<T>(Vector<T>, Vector<T>, Int32[], Vector<TResult>)
Groups the elements of a vector according to the specified level indexes.
public Vector<TResult> AggregateInto<T>(
Vector<T> values1,
Vector<T> values2,
int[] levels,
Vector<TResult>? result
)
Parameters
- values1 Vector<T>
- A vector of values.
- values2 Vector<T>
- 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.
Type Parameters
- T