Returns a new matrix that aggregates the rows grouped by the specified row.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Matrix<U> AggregateRowsBy<C, U>(
C groupingRowKey,
AggregatorGroup<U> aggregator
)
Public Function AggregateRowsBy(Of C, U) (
groupingRowKey As C,
aggregator As AggregatorGroup(Of U)
) As Matrix(Of U)
public:
generic<typename C, typename U>
Matrix<U>^ AggregateRowsBy(
C groupingRowKey,
AggregatorGroup<U>^ aggregator
)
member AggregateRowsBy :
groupingRowKey : 'C *
aggregator : AggregatorGroup<'U> -> Matrix<'U>
Parameters
- groupingRowKey
- Type: C
The key of the grouping row. - aggregator
- Type: Extreme.DataAnalysisAggregatorGroupU
The aggregator to apply to each group.
Type Parameters
- C
- The type of the row keys.
- U
- The type of the result of the aggregator.
Return Value
Type:
MatrixUA new matrix, with columns indexed by the unique elements
of the row with key
groupingRowKey,
and values the result of applying
aggregator
to each group of the remaining rows.
Reference