Aggregator Group<TResult>.Aggregate Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Aggregate<T>(Vector<T>) | Aggregates the elements of a vector and returns the result. |
Aggregate<T>(IEnumerable<T>, Boolean) | Aggregates the elements of a sequence and returns the result. |
Aggregate<T>(ReadOnlySpan<T>, Boolean) | Aggregates the elements of a span and returns the result. |
Aggregate<T>(Vector<T>, Boolean) | Aggregates the elements of a vector and returns the result. |
Aggregate<T>(Vector<T>)
Aggregates the elements of a vector and returns the result.
public TResult Aggregate<T>(
Vector<T> values
)
Parameters
- values Vector<T>
- A vector of values.
Type Parameters
- T
- The type of the elements of values.
Return Value
TResultThe aggregate value.
Exceptions
Argument | values is null. |
Aggregate<T>(IEnumerable<T>, Boolean)
Aggregates the elements of a sequence and returns the result.
public TResult Aggregate<T>(
IEnumerable<T> values,
bool skipMissingValues = false
)
Parameters
- values IEnumerable<T>
- A sequence of values.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- T
- The type of the elements of values.
Return Value
TResultThe aggregate result.
Aggregate<T>(ReadOnlySpan<T>, Boolean)
Aggregates the elements of a span and returns the result.
public TResult Aggregate<T>(
ReadOnlySpan<T> values,
bool skipMissingValues = false
)
Parameters
- values ReadOnlySpan<T>
- A read-only span.
- 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 aggregate value.
Aggregate<T>(Vector<T>, Boolean)
Aggregates the elements of a vector and returns the result.
public TResult Aggregate<T>(
Vector<T> values,
bool skipMissingValues
)
Parameters
- values Vector<T>
- A vector of values.
- skipMissingValues Boolean
- Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- T
- The type of the elements of values.
Return Value
TResultThe aggregate value.
Exceptions
Argument | values is null. |