BinaryAggregator<T1, T2, TResult>.TryGetAccumulator 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.4
C#
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

Boolean
true if an accumulator with the specified behaviour could be created; otherwise false.

See Also