Destructive Aggregator<T, TResult>.Try 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
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 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(Span<T>, Boolean, TResult)
Aggregates the elements of a vector and returns the result.
protected abstract bool TryAggregate(
Span<T> values,
bool skipMissingValues,
out TResult result
)
Parameters
- values Span<T>
- A span of 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.
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.