Aggregator2Group<T>.AggregateInto Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

AggregateInto<U>(IVector, IVector, IGrouping, IVector) Aggregates the specified range of elements of a vector and returns the result.
AggregateInto<U>(IVector, IVector, IGrouping, Vector<T>) Aggregates the specified range of elements of a vector and returns the result.
AggregateInto<U>(Vector<U>, Vector<U>, IGrouping, Vector<T>) Groups the elements of a vector according to the specified grouping.
AggregateInto<U>(Vector<U>, Vector<U>, Int32[], Vector<T>) 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.
C#
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

IVector
The result of the aggregation.

Exceptions

ArgumentNullException

values1 is null.

-or-

values2 is null.

DimensionMismatchException

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.
C#
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

ArgumentNullException

values1 is null.

-or-

values2 is null.

DimensionMismatchException

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.
C#
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.
C#
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

Return Value

Vector<T>

See Also