BinaryAggregatorGroup<TResult>.AggregateInto Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

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

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<T>(IVector, IVector, IGrouping, Vector<TResult>)

Aggregates the specified range of elements of a vector and returns the result.
C#
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

ArgumentNullException

values1 is null.

-or-

values2 is null.

DimensionMismatchException

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

Return Value

Vector<TResult>

See Also