List Vector<T>.Aggregate Lists Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
Overload List
| Aggregate | Aggregates each list using the specified type-preserving aggregator group. |
| Aggregate | Aggregates each list using the specified aggregator. |
| Aggregate | Aggregates each list using the specified aggregator group. |
AggregateLists<TResult>(Aggregator<T, TResult>, Vector<TResult>)
Aggregates each list using the specified aggregator.
public Vector<TResult> AggregateLists<TResult>(
Aggregator<T, TResult> aggregator,
Vector<TResult>? result = null
)
Parameters
- aggregator Aggregator<T, TResult>
- The aggregator to apply to each list.
- result Vector<TResult> (Optional)
- Optional. The vector that is to hold the result. May be null.
Type Parameters
- TResult
- The type of the aggregation result.
Return Value
Vector<TResult>A vector containing the aggregation result for each list.
AggregateLists<TResult>(AggregatorGroup<TResult>, Vector<TResult>)
Aggregates each list using the specified aggregator group.
public Vector<TResult> AggregateLists<TResult>(
AggregatorGroup<TResult> aggregator,
Vector<TResult>? result = null
)
Parameters
- aggregator AggregatorGroup<TResult>
- The aggregator group to apply to each list.
- result Vector<TResult> (Optional)
- Optional. The vector that is to hold the result. May be null.
Type Parameters
- TResult
- The type of the aggregation result.
Return Value
Vector<TResult>A vector containing the aggregation result for each list.
AggregateLists(TypePreservingAggregatorGroup, Vector<T>)
Aggregates each list using the specified type-preserving aggregator group.
public Vector<T> AggregateLists(
TypePreservingAggregatorGroup aggregator,
Vector<T>? result = null
)Parameters
- aggregator TypePreservingAggregatorGroup
- The type-preserving aggregator group to apply to each list.
- result Vector<T> (Optional)
- Optional. The vector that is to hold the result. May be null.
Return Value
Vector<T>A vector containing the aggregation result for each list.