Type Preserving Binary Aggregator Group.Try Specialize Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Try | Returns an aggregator for the specified element type. |
Try | Attempts to create an aggregator specialized to operate on values of the specified type. |
TrySpecialize<TResult>(BinaryAggregator<TResult, TResult, TResult>)
Attempts to create an aggregator specialized to operate on values of the specified type.
public abstract bool TrySpecialize<TResult>(
out BinaryAggregator<TResult, TResult, TResult> aggregator
)
Parameters
- aggregator BinaryAggregator<TResult, TResult, TResult>
- On return, the specialized aggregator.
Type Parameters
- TResult
- The type to specialize for.
Return Value
Booleantrue if a specialized aggregator was created; otherwise false.
TrySpecialize(Type, IBinaryAggregator)
Returns an aggregator for the specified element type.
public override bool TrySpecialize(
Type type,
out IBinaryAggregator aggregator
)
Parameters
- type Type
- The desired element type.
- aggregator IBinaryAggregator
- On return, the aggregator specialized for elements of type type, or null if no specialized aggregator exists.
Return Value
Booleantrue if a specialized aggregator could be created; otherwise false.