AggregatorGroup<TResult>.AggregateInto Method

Definition

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

Overload List

AggregateInto(IVector, IGrouping, Vector<TResult>) Aggregates the elements of a data frame column according to the specified grouping and returns the result in an existing vector.
AggregateInto<T>(Vector<T>, IGrouping, Vector<TResult>) Groups the elements of a vector according to the specified grouping.
AggregateInto<T>(Vector<T>, Int32[], Boolean, Vector<TResult>) Groups the elements of a vector according to the specified level indexes.

AggregateInto(IVector, IGrouping, Vector<TResult>)

Aggregates the elements of a data frame column according to the specified grouping and returns the result in an existing vector.
C#
public Vector<TResult> AggregateInto(
	IVector values,
	IGrouping grouping,
	Vector<TResult>? result
)

Parameters

values  IVector
A vector holding the values.
grouping  IGrouping
The object that specifies the grouping.
result  Vector<TResult>
The vector that is to hold the result.

Return Value

Vector<TResult>
The result of aggregating the elements of values according to the groups defined by grouping.

AggregateInto<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> values,
	IGrouping grouping,
	Vector<TResult>? result
)

Parameters

values  Vector<T>
The vector to aggregate.
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>, Int32[], Boolean, Vector<TResult>)

Groups the elements of a vector according to the specified level indexes.
C#
public Vector<TResult> AggregateInto<T>(
	Vector<T> values,
	int[] levels,
	bool skipMissingValues,
	Vector<TResult> result
)

Parameters

values  Vector<T>
The vector to aggregate.
levels  Int32[]
An array of level indexes.
skipMissingValues  Boolean
Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
result  Vector<TResult>
The vector that is to hold the result. May be null.

Type Parameters

T

Return Value

Vector<TResult>

See Also