Constructs a new aggregator group from a function.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static AggregatorGroup<T> Create<U, T>(
string name,
Func<Vector<U>, T> f
)
Public Shared Function Create(Of U, T) (
name As String,
f As Func(Of Vector(Of U), T)
) As AggregatorGroup(Of T)
public:
generic<typename U, typename T>
static AggregatorGroup<T>^ Create(
String^ name,
Func<Vector<U>^, T>^ f
)
static member Create :
name : string *
f : Func<Vector<'U>, 'T> -> AggregatorGroup<'T>
Parameters
- name
- Type: SystemString
The name of the aggregator group. - f
- Type: SystemFuncVectorU, T
A function that computes the aggregated value of a vector.
Type Parameters
- U
- The element type of the inputs.
- T
- The type of the result.
Return Value
Type:
AggregatorGroupTAn aggregator group.
Reference