Vector<T>.AggregateBy<U>(IPivot, AggregatorGroup<U>) Method

Returns a new matrix that aggregates the elements according to the specified pivot grouping.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Matrix<U> AggregateBy<U>(
	IPivot pivot,
	AggregatorGroup<U> aggregator
)

Parameters

pivot  IPivot
A pivot grouping.
aggregator  AggregatorGroup<U>
The aggregator to apply to each group.

Type Parameters

U
The type of the result of the aggregator.

Return Value

Matrix<U>
A new vector, with rows indexed by the index associated with pivot, and as values the result of applying aggregator to each group.

See Also