Aggregator<T, TResult>.Try Get Accumulator Method
Attempts to get an accumulator with the specified capability.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
true if the accumulator could be found; otherwise false.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public virtual bool TryGetAccumulator(
bool canRemove,
out IAccumulator<T, TResult> accumulator
)
Parameters
- canRemove Boolean
- Indicates whether entries can be removed from the accumulator.
- accumulator IAccumulator<T, TResult>
- The accumulator object that is to hold the result.
Return Value
Booleantrue if the accumulator could be found; otherwise false.