Matrix<T>.Aggregate Columns Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Aggregate | Applies the specified aggregator to all the columns in the matrix. |
Aggregate | Applies the specified aggregator to all the columns in the matrix. |
Aggregate | Applies the specified aggregator to all the columns in the matrix. |
Aggregate | Applies the specified aggregators to all the columns in the matrix. |
Aggregate | Applies the specified aggregators to all the columns in the matrix. |
AggregateColumns<U>(Aggregator<T, U>)
Applies the specified aggregator to all the columns in the matrix.
public Vector<U> AggregateColumns<U>(
Aggregator<T, U> aggregator
)
Parameters
- aggregator Aggregator<T, U>
- The aggregator to use.
Type Parameters
- U
- The type of the result of the aggregation.
Return Value
Vector<U>A vector that contains the result of the aggregations indexed by the matrix's column index.
AggregateColumns<U>(AggregatorGroup<U>)
Applies the specified aggregator to all the columns in the matrix.
public Vector<U> AggregateColumns<U>(
AggregatorGroup<U> aggregator
)
Parameters
- aggregator AggregatorGroup<U>
- The aggregator to use.
Type Parameters
- U
- The type of the result of the aggregation.
Return Value
Vector<U>A vector that contains the result of the aggregations indexed by the matrix's column index.
AggregateColumns<TResult>(AggregatorGroup<TResult>[])
Applies the specified aggregators to all the columns in the matrix.
public Matrix<TResult> AggregateColumns<TResult>(
params AggregatorGroup<TResult>[] aggregators
)
Parameters
- aggregators AggregatorGroup<TResult>[]
- One or more aggregators to use.
Type Parameters
- TResult
- The type of the result of the aggregation.
Return Value
Matrix<TResult>A 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.
AggregateColumns<TResult>(Func<Vector<T>, TResult>)
Applies the specified aggregators to all the columns in the matrix.
public Vector<TResult> AggregateColumns<TResult>(
Func<Vector<T>, TResult> aggregator
)
Parameters
- aggregator Func<Vector<T>, TResult>
- A function that aggregates the elements of a vector into a value of type TResult.
Type Parameters
- TResult
- The type of the result of the aggregation.
Return Value
Vector<TResult>A 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.
AggregateColumns(TypePreservingAggregatorGroup)
Applies the specified aggregator to all the columns in the matrix.
public Vector<T> AggregateColumns(
TypePreservingAggregatorGroup aggregator
)
Parameters
- aggregator TypePreservingAggregatorGroup
- The aggregator to use.
Return Value
Vector<T>A vector that contains the result of the aggregations indexed by the matrix's column index.