AggregatorGroup<TResult>.As<TNewResult> Method

Returns an aggregator group that produces results of the specified type.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public virtual AggregatorGroup<TNewResult> As<TNewResult>()

Type Parameters

TNewResult
The type of the result of the new aggregator.

Return Value

AggregatorGroup<TNewResult>
An aggregator that performs the same operation as the current aggregator, but uses TNewResult to perform the calculations.

Remarks

Not all aggregator groups support this capability. When that is the case, a NotSupportedException is thrown.

Exceptions

NotSupportedException

The aggregator group doesn't support using TNewResult to perform the calculations.

See Also