BinaryAggregator<T1, T2, TResult>.AggregateBy Method

Definition

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

Overload List

AggregateBy(Vector<T1>, Vector<T2>, IGrouping, Vector<TResult>) Groups the elements of a vector according to the specified grouping.
AggregateBy(Vector<T1>, Vector<T2>, Int32[], Vector<TResult>) 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.
C#
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.
C#
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.

Return Value

Vector<TResult>

See Also