Vector<T>.Aggregate By<U>(IGrouping, Aggregator Group<U>) Method
Returns a new vector that aggregates the columns according to the specified grouping.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A new vector, with rows indexed by the index associated with grouping, and as values the result of applying aggregator to each group.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Vector<U> AggregateBy<U>(
IGrouping grouping,
AggregatorGroup<U> aggregator
)
Parameters
- grouping IGrouping
- The grouping object.
- aggregator AggregatorGroup<U>
- The aggregator to apply to each group.
Type Parameters
- U
- The type of the result of the aggregator.
Return Value
Vector<U>A new vector, with rows indexed by the index associated with grouping, and as values the result of applying aggregator to each group.