Binary Aggregator Group<TResult>.Aggregate Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Aggregate<T>(Vector<T>, Vector<T>) | Aggregates the elements of a vector and returns the result. |
Aggregate<T>(T[], T[], Boolean) | Aggregates the elements of a vector and returns the result. |
Aggregate<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Boolean) | Aggregates the elements of a vector and returns the result. |
Aggregate<T>(Vector<T>, Vector<T>, IGrouping) | Aggregates the elements of a vector according to the specified grouping. |
Aggregate<T>(Vector<T>, Vector<T>)
Aggregates the elements of a vector and returns the result.
public TResult Aggregate<T>(
Vector<T> values1,
Vector<T> values2
)
Parameters
Type Parameters
- T
- The element type of the vector.
Return Value
TResulttrue if the aggregation produced a result; otherwise false.
Aggregate<T>(T[], T[], Boolean)
Aggregates the elements of a vector and returns the result.
public TResult Aggregate<T>(
T[] values1,
T[] values2,
bool skipMissingValues = false
)
Parameters
- values1 T[]
- A vector of values.
- values2 T[]
- A vector of values.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- T
- The element type of the vector.
Return Value
TResultThe result of the aggregation.
Aggregate<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Boolean)
Aggregates the elements of a vector and returns the result.
public TResult Aggregate<T>(
ReadOnlySpan<T> values1,
ReadOnlySpan<T> values2,
bool skipMissingValues = false
)
Parameters
- values1 ReadOnlySpan<T>
- A vector of values.
- values2 ReadOnlySpan<T>
- A vector of values.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- T
- The element type of the vector.
Return Value
TResulttrue if the aggregation produced a result; otherwise false.
Aggregate<T>(Vector<T>, Vector<T>, IGrouping)
Aggregates the elements of a vector according to the specified grouping.
public Vector<TResult> Aggregate<T>(
Vector<T> values1,
Vector<T> values2,
IGrouping grouping
)
Parameters
- values1 Vector<T>
- A vector of values.
- values2 Vector<T>
- A vector of values.
- grouping IGrouping
- A grouping.
Type Parameters
- T
Return Value
Vector<TResult>A vector containing the aggregated values.