Vector<T>.Aggregate By<U>(IPivot, Aggregator Group<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#
A new vector, with rows indexed by the index associated with pivot, and as values the result of applying aggregator to each group.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.