Aggregates the specified vector over each group and returns the result.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Vector<U> AggregateInto<T, U>(
Vector<T> values,
Aggregator<T, U> aggregator,
Vector<U> result
)
Public Overridable Function AggregateInto(Of T, U) (
values As Vector(Of T),
aggregator As Aggregator(Of T, U),
result As Vector(Of U)
) As Vector(Of U)
public:
generic<typename T, typename U>
virtual Vector<U>^ AggregateInto(
Vector<T>^ values,
Aggregator<T, U>^ aggregator,
Vector<U>^ result
)
abstract AggregateInto :
values : Vector<'T> *
aggregator : Aggregator<'T, 'U> *
result : Vector<'U> -> Vector<'U>
override AggregateInto :
values : Vector<'T> *
aggregator : Aggregator<'T, 'U> *
result : Vector<'U> -> Vector<'U>
Parameters
- values
- Type: Extreme.MathematicsVectorT
A vector. - aggregator
- Type: Extreme.DataAnalysisAggregatorT, U
The aggregator to apply to each group. - result
- Type: Extreme.MathematicsVectorU
The vector that is to hold the result of the aggregation.
May be .
Type Parameters
- T
- The element type of the input vector.
- U
- The type of the result of the aggregation.
Return Value
Type:
VectorUImplements
IGroupingAggregateIntoT, U(VectorT, AggregatorT, U, VectorU)
Reference