Aggregator2<T, U>.TryGetAccumulator 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#
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

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

See Also