Indexed Vector<T>.Try Aggregate Method
Definition
Namespace: Numerics.NET.LinearAlgebra
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 | Applies the specified aggregator to the vector. |
Try | Applies the specified aggregator to the vector. |
Try | Applies the specified aggregator to the vector. |
Try | Applies the specified aggregator to the vector. |
TryAggregate<TResult, TPredicate>(Aggregator<T, TResult>, TPredicate, Nullable<Boolean>, TResult)
Applies the specified aggregator to the vector.
public override bool TryAggregate<TResult, TPredicate>(
Aggregator<T, TResult> aggregator,
TPredicate predicate,
bool? skipMissingValues,
out TResult result
)
where TPredicate : struct, new(), IFastFunc<T, bool>
Parameters
- aggregator Aggregator<T, TResult>
- An aggregator.
- predicate TPredicate
- A predicate that filters the values that are to be included in the aggregation.
- skipMissingValues Nullable<Boolean>
- Specifies whether missing values should be excluded from the aggregation. If null, then the value is set to the value of the vector's CheckForMissingValues attribute.
- result TResult
- On return, the result of the aggregation.
Type Parameters
- TResult
- The type of the result of the aggregation.
- TPredicate
- The type of predicate.