Accumulating Aggregator<T, TResult, TIntermediate, TConverter, TAccumulator>.Try 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
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the elements of a sequence and returns the result. |
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the specified range of elements of a vector and returns the result. |
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the elements of a vector and returns the result. |
TryAggregate(Int32, ReadOnlySpan<T>, Int32, Boolean, TResult)
Aggregates the elements of a vector and returns the result.
public override bool TryAggregate(
int length,
ReadOnlySpan<T> values,
int stride,
bool skipMissingValues,
out TResult result
)
Parameters
- length Int32
- The number of elements to aggregate.
- values ReadOnlySpan<T>
- A read-only span of values.
- stride Int32
- The distance between successive elements in values.
- skipMissingValues Boolean
- Specifies whether missing values should be excluded from the aggregation.
- result TResult
- On return, the result of the aggregation.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.