Aggregators.Create 2<U, T, TAccumulator> Method
Constructs a new aggregator that uses the specified accumulator.
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
An aggregator that aggregates values of type U into values of type T using an accumulator of type TAccumulator.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Aggregator2<U, T> Create2<U, T, TAccumulator>(
bool emptyHasValue = false
)
where TAccumulator : struct, new(), IAccumulator2<U, T>
Parameters
- emptyHasValue Boolean (Optional)
Type Parameters
- U
- The element type of the inputs to the accumulator.
- T
- The element type of the result.
- TAccumulator
- The type of the accumulator.
Return Value
Aggregator2<U, T>An aggregator that aggregates values of type U into values of type T using an accumulator of type TAccumulator.