Returns a new vector that aggregates the columns according to the specified grouping.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<U> AggregateBy<U>(
IGrouping grouping,
AggregatorGroup<U> aggregator
)
Public Function AggregateBy(Of U) (
grouping As IGrouping,
aggregator As AggregatorGroup(Of U)
) As Vector(Of U)
public:
generic<typename U>
Vector<U>^ AggregateBy(
IGrouping^ grouping,
AggregatorGroup<U>^ aggregator
)
member AggregateBy :
grouping : IGrouping *
aggregator : AggregatorGroup<'U> -> Vector<'U>
Parameters
- grouping
- Type: Extreme.DataAnalysisIGrouping
The grouping object. - aggregator
- Type: Extreme.DataAnalysisAggregatorGroupU
The aggregator to apply to each group.
Type Parameters
- U
- The type of the result of the aggregator.
Return Value
Type:
VectorUA new vector, with rows indexed by the index associated with
grouping,
and as values the result of applying
aggregator
to each group.
Reference