Returns a new matrix that aggregates the columns according to the specified grouping.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Matrix<U> AggregateColumnsBy<U>(
IGrouping grouping,
AggregatorGroup<U> aggregator
)
Public Function AggregateColumnsBy(Of U) (
grouping As IGrouping,
aggregator As AggregatorGroup(Of U)
) As Matrix(Of U)
public:
generic<typename U>
Matrix<U>^ AggregateColumnsBy(
IGrouping^ grouping,
AggregatorGroup<U>^ aggregator
)
member AggregateColumnsBy :
grouping : IGrouping *
aggregator : AggregatorGroup<'U> -> Matrix<'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:
MatrixUA new matrix, with rows indexed by the index associated with
grouping,
and as values the result of applying
aggregator
to each group of each column.
Reference