Constructs a new aggregator that uses the specified accumulator.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Aggregator<U, T> Create<U, T, TAccumulator>(
bool emptyHasValue = false
)
where TAccumulator : struct, new(), IAccumulator<U, T>
Public Shared Function Create(Of U, T, TAccumulator As {Structure, New, IAccumulator(Of U, T)}) (
Optional emptyHasValue As Boolean = false
) As Aggregator(Of U, T)
public:
generic<typename U, typename T, typename TAccumulator>
where TAccumulator : value class, gcnew(), IAccumulator<U, T>
static Aggregator<U, T>^ Create(
bool emptyHasValue = false
)
static member Create :
?emptyHasValue : bool
(* Defaults:
let _emptyHasValue = defaultArg emptyHasValue false
*)
-> Aggregator<'U, 'T> when 'TAccumulator : struct, new() and IAccumulator<'U, 'T>
Parameters
- emptyHasValue (Optional)
- Type: SystemBoolean
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
Type:
AggregatorU,
TAn aggregator that aggregates values of type
U into values of type
T
using an accumulator of type
TAccumulator.
Reference