Applies the specified aggregators to all the columns in the matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<U> AggregateColumns<U>(
Func<Vector<T>, U> aggregator
)
Public Function AggregateColumns(Of U) (
aggregator As Func(Of Vector(Of T), U)
) As Vector(Of U)
public:
generic<typename U>
Vector<U>^ AggregateColumns(
Func<Vector<T>^, U>^ aggregator
)
member AggregateColumns :
aggregator : Func<Vector<'T>, 'U> -> Vector<'U>
Parameters
- aggregator
- Type: SystemFuncVectorT, U
A function that aggregates the elements of a vector
into a value of type U.
Type Parameters
- U
- The type of the result of the aggregation.
Return Value
Type:
VectorUA new matrix that contains the result of the aggregations
with rows indexed by the names of the aggregators and columns indexed
by the matrix's column index.
Reference