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<T> AggregateBy(
IGrouping grouping,
TypePreservingAggregatorGroup aggregator
)
Public Function AggregateBy (
grouping As IGrouping,
aggregator As TypePreservingAggregatorGroup
) As Vector(Of T)
public:
Vector<T>^ AggregateBy(
IGrouping^ grouping,
TypePreservingAggregatorGroup^ aggregator
)
member AggregateBy :
grouping : IGrouping *
aggregator : TypePreservingAggregatorGroup -> Vector<'T>
Parameters
- grouping
- Type: Extreme.DataAnalysisIGrouping
The grouping object. - aggregator
- Type: Extreme.DataAnalysisTypePreservingAggregatorGroup
The aggregator to apply to each group.
Return Value
Type:
VectorTA new vector, with rows indexed by the index associated with
grouping,
and as values the result of applying
aggregator
to each group.
Reference