Aggregator 2<T, U>.Try Get Accumulator Method
Attempts to get an accumulator that can be used to perform the aggregation.
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
true if an accumulator with the specified behaviour could be created; otherwise false.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public virtual bool TryGetAccumulator(
bool canRemove,
out IAccumulator2<T, U> accumulator
)
Parameters
- canRemove Boolean
- If true, requires that elements can be removed from as well as added to the accumulator.
- accumulator IAccumulator2<T, U>
- On return, the requested accumulator object.
Return Value
Booleantrue if an accumulator with the specified behaviour could be created; otherwise false.