Applies the specified aggregator to the elements of a vector according to the current grouping.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Vector<U> AggregateInto<T, U>(
Vector<T> values,
Aggregator<T, U> aggregator,
Vector<U> result
)
Public 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
) sealed
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 that contains the values to be aggregated. - aggregator
- Type: Extreme.DataAnalysisAggregatorT, U
An aggregator object. - result
- Type: Extreme.MathematicsVectorU
A vector that is to hold the result. May be .
Type Parameters
- T
- The element type of the input vector.
- U
- The type of the result of the aggregation.
Return Value
Type:
VectorUA vector containing the aggregated values indexed by the grouping's index.
Implements
IGroupingAggregateIntoT, U(VectorT, AggregatorT, U, VectorU)
Reference