Aggregator Group<TResult>.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 vector and returns the result. |
Try | Aggregates the elements of a sequence and returns the result. |
TryAggregate(IVector, TResult)
Aggregates the elements of a vector and returns the result.
public bool TryAggregate(
IVector values,
out TResult result
)
Parameters
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<T>(Vector<T>, TResult)
Aggregates the elements of a vector and returns the result.
public bool TryAggregate<T>(
Vector<T> values,
out TResult result
)
Parameters
Type Parameters
- T
- The element type of the vector.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<T>(IEnumerable<T>, Boolean, TResult)
Aggregates the elements of a sequence and returns the result.
public bool TryAggregate<T>(
IEnumerable<T> values,
bool skipMissingValues,
out TResult result
)
Parameters
- values IEnumerable<T>
- A sequence of values.
- skipMissingValues Boolean
- Indicates whether missing values should be filtered from the sequence.
- result TResult
- The result of the aggregation.
Type Parameters
- T
Return Value
Booleantrue if the aggregation produced a result; otherwise false.