AccumulatingAggregator<T, TResult, TAccumulator> Constructor

Constructs a new aggregator.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public AccumulatingAggregator(
	Func<TAccumulator, TResult> selector,
	AggregatorAttributes attributes,
	TResult emptyValue = null
)

Parameters

selector  Func<TAccumulator, TResult>
A delegate that selects the result of the accumulation from the accumulator.
attributes  AggregatorAttributes
The attributes of the aggregator.
emptyValue  TResult  (Optional)
The value of the aggregation when the input is empty.

See Also