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