Aggregators.Create Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Create<U, T>(String, Func<Vector<U>, T>) | Constructs a new aggregator group from a function. |
Create<U, T>(String, Func<Vector<U>, Vector<U>, T>) | Constructs a new aggregator group from a function. |
Create<U, T, TAccumulator>(Boolean) | Constructs a new aggregator that uses the specified accumulator. |
Create<U, T, TAccumulator>(Boolean)
Constructs a new aggregator that uses the specified accumulator.
public static Aggregator<U, T> Create<U, T, TAccumulator>(
bool emptyHasValue = false
)
where TAccumulator : struct, new(), IAccumulator<U, T>
Parameters
- emptyHasValue Boolean (Optional)
Type Parameters
- U
- The element type of the inputs to the accumulator.
- T
- The element type of the result.
- TAccumulator
- The type of the accumulator.
Return Value
Aggregator<U, T>An aggregator that aggregates values of type U into values of type T using an accumulator of type TAccumulator.
Create<U, T>(String, Func<Vector<U>, T>)
Constructs a new aggregator group from a function.
public static AggregatorGroup<T> Create<U, T>(
string name,
Func<Vector<U>, T> f
)
Parameters
- name String
- The name of the aggregator group.
- f Func<Vector<U>, 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
AggregatorGroup<T>An aggregator group.
Create<U, T>(String, Func<Vector<U>, Vector<U>, T>)
Constructs a new aggregator group from a function.
public static Aggregator2Group<T> Create<U, T>(
string name,
Func<Vector<U>, Vector<U>, T> f
)
Parameters
- name String
- The name of the aggregator group.
- f Func<Vector<U>, Vector<U>, 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
Aggregator2Group<T>An aggregator group.