Returns a new matrix that aggregates the rows according to the specified grouping.
Namespace: Extreme.Mathematics.GenericAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public Matrix<U> AggregateRowsBy<U>(
IGrouping grouping,
AggregatorGroup<U> aggregator
)
Public Function AggregateRowsBy(Of U) (
grouping As IGrouping,
aggregator As AggregatorGroup(Of U)
) As Matrix(Of U)
public:
generic<typename U>
Matrix<U>^ AggregateRowsBy(
IGrouping^ grouping,
AggregatorGroup<U>^ aggregator
)
member AggregateRowsBy :
grouping : IGrouping *
aggregator : AggregatorGroup<'U> -> Matrix<'U>
Parameters
- grouping
- Type: Extreme.CollectionsIGrouping
The grouping object. - aggregator
- Type: Extreme.CollectionsAggregatorGroupU
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 columns indexed by the index associated with
grouping,
and as values the result of applying
aggregator
to each group of each row.
Numerical Libraries
Supported in: 5.x
Reference