Grouping<TKey>.Aggregate Into Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Aggregate | Aggregates the specified vector over each group and returns the result. |
Aggregate | Aggregates the specified vector over each group and returns the result. |
AggregateInto<T, U>(Vector<T>, Aggregator<T, U>, Vector<U>)
Aggregates the specified vector over each group and returns the result.
public virtual Vector<U> AggregateInto<T, U>(
Vector<T> values,
Aggregator<T, U> aggregator,
Vector<U> result
)
Parameters
- values Vector<T>
- A vector.
- aggregator Aggregator<T, U>
- The aggregator to apply to each group.
- result Vector<U>
- The vector that is to hold the result of the aggregation. May be null.
Type Parameters
- T
- The element type of the input vector.
- U
- The type of the result of the aggregation.
Return Value
Vector<U>Implements
IGrouping.AggregateInto<T, U>(Vector<T>, Aggregator<T, U>, Vector<U>)Exceptions
Argument | values is null -or- aggregator is null |
Dimension | The length of result is less than the number of groups. |
AggregateInto<T, U>(Vector<T>, Vector<T>, Aggregator2<T, U>, Vector<U>)
Aggregates the specified vector over each group and returns the result.
public virtual Vector<U> AggregateInto<T, U>(
Vector<T> values1,
Vector<T> values2,
Aggregator2<T, U> aggregator,
Vector<U> result
)
Parameters
- values1 Vector<T>
- A vector of values.
- values2 Vector<T>
- A vector of values.
- aggregator Aggregator2<T, U>
- The aggregator to apply to each group.
- result Vector<U>
- The vector that is to hold the result of the aggregation. May be null.
Type Parameters
- T
- The element type of the input vector.
- U
- The type of the result of the aggregation.
Return Value
Vector<U>Implements
IGrouping.AggregateInto<T, U>(Vector<T>, Vector<T>, Aggregator2<T, U>, Vector<U>)Exceptions
Argument | values1 is null -or- values2 is null -or- aggregator is null |
Dimension | The length of result is less than the number of groups. |