Type Preserving Aggregator Group.Aggregate 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
Aggregate<TResult>(Vector<TResult>) | Aggregates the elements of a vector and returns the result. |
Aggregate<TResult>(IEnumerable<TResult>, Boolean) | Aggregates the elements of a sequence and returns the result. |
Aggregate<TResult>(ReadOnlySpan<TResult>, Boolean) | Aggregates the elements of a span and returns the result. |
Aggregate<TResult>(Vector<TResult>, IGrouping) | Aggregates the elements of a vector according to the specified grouping. |
Aggregate<TResult>(Vector<TResult>)
Aggregates the elements of a vector and returns the result.
public TResult Aggregate<TResult>(
Vector<TResult> values
)
Parameters
- values Vector<TResult>
- A vector of values.
Type Parameters
- TResult
- The element type of the vector.
Return Value
TResultThe aggregated result..
Aggregate<TResult>(IEnumerable<TResult>, Boolean)
Aggregates the elements of a sequence and returns the result.
public TResult Aggregate<TResult>(
IEnumerable<TResult> values,
bool skipMissingValues = false
)
Parameters
- values IEnumerable<TResult>
- A sequence of values.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- TResult
- The type of the elements of values.
Return Value
TResultThe aggregate result.
Aggregate<TResult>(ReadOnlySpan<TResult>, Boolean)
Aggregates the elements of a span and returns the result.
public TResult Aggregate<TResult>(
ReadOnlySpan<TResult> values,
bool skipMissingValues = false
)
Parameters
- values ReadOnlySpan<TResult>
- A read-only span of values.
- skipMissingValues Boolean (Optional)
- Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.
Type Parameters
- TResult
- The element type of the vector.
Return Value
TResultThe aggregated result..
Aggregate<TResult>(Vector<TResult>, IGrouping)
Aggregates the elements of a vector according to the specified grouping.
public Vector<TResult> Aggregate<TResult>(
Vector<TResult> values,
IGrouping grouping
)
Parameters
Type Parameters
- TResult
Return Value
Vector<TResult>A vector containing the aggregated values.