Aggregator 2Group<T>.Aggregate Into 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
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<U>(IVector, IVector, IGrouping, IVector)
Aggregates the specified range of elements of a vector and returns the result.
public IVector AggregateInto<U>(
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
- U
- 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<U>(IVector, IVector, IGrouping, Vector<T>)
Aggregates the specified range of elements of a vector and returns the result.
public Vector<T> AggregateInto<U>(
IVector values1,
IVector values2,
IGrouping grouping,
Vector<T> 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<T>
- The vector that is to hold the result. May be null.
Type Parameters
- U
- The element type of values1 and values2.
Return Value
Vector<T>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<U>(Vector<U>, Vector<U>, IGrouping, Vector<T>)
Groups the elements of a vector according to the specified grouping.
public Vector<T> AggregateInto<U>(
Vector<U> values1,
Vector<U> values2,
IGrouping grouping,
Vector<T> result
)
Parameters
- values1 Vector<U>
- A vector of values.
- values2 Vector<U>
- A vector of values.
- grouping IGrouping
- A grouping.
- result Vector<T>
- The vector that is to hold the result. May be null.
Type Parameters
- U
Return Value
Vector<T>AggregateInto<U>(Vector<U>, Vector<U>, Int32[], Vector<T>)
Groups the elements of a vector according to the specified level indexes.
public Vector<T> AggregateInto<U>(
Vector<U> values1,
Vector<U> values2,
int[] levels,
Vector<T> result
)
Parameters
- values1 Vector<U>
- A vector of values.
- values2 Vector<U>
- A vector of values.
- levels Int32[]
- An array of level indexes.
- result Vector<T>
- The vector that is to hold the result. May be null.
Type Parameters
- U