TypePreservingAggregatorGroup.TrySpecialize Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

TrySpecialize(Type, IAggregator) Returns an aggregator for the specified element type for input operands.
TrySpecialize<TResult>(Aggregator<TResult, TResult>) Attempts to create an aggregator specialized to operate on values of the specified type.

TrySpecialize<TResult>(Aggregator<TResult, TResult>)

Attempts to create an aggregator specialized to operate on values of the specified type.
C#
public abstract bool TrySpecialize<TResult>(
	out Aggregator<TResult, TResult> aggregator
)

Parameters

aggregator  Aggregator<TResult, TResult>
On return, the specialized aggregator.

Type Parameters

TResult
The type to specialize for.

Return Value

Boolean
true if a specialized aggregator was created; otherwise false.

TrySpecialize(Type, IAggregator)

Returns an aggregator for the specified element type for input operands.
C#
public override bool TrySpecialize(
	Type type,
	out IAggregator aggregator
)

Parameters

type  Type
The desired element type.
aggregator  IAggregator
On return, the aggregator specialized to the element type type.

Return Value

Boolean
An aggregator object that aggregates elements of type type.

See Also