IBinary Aggregator<TResult>.Try Aggregate Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Try | Aggregates the elements of a vector and returns the result. |
Try | Aggregates the specified elements of a vector and returns the result. |
Try | Aggregates the specified range of elements of a vector and returns the result. |
TryAggregate(IVector, IVector, TResult)
Aggregates the elements of a vector and returns the result.
bool TryAggregate(
IVector values1,
IVector values2,
out TResult result
)
Parameters
- values1 IVector
- A vector of values.
- values2 IVector
- A vector of values.
- result TResult
- The aggregated result.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(IVector, IVector, Array1D<Int32>, Int32, TResult)
Aggregates the specified elements of a vector and returns the result.
bool TryAggregate(
IVector values1,
IVector values2,
Array1D<int> indexes,
int length,
out TResult result
)
Parameters
- values1 IVector
- A vector of values.
- values2 IVector
- A vector of values.
- indexes Array1D<Int32>
- An integer array containing the indexes of the elements of values1 and values2 that will be aggregated.
- length Int32
- The number of values to aggregate.
- result TResult
- The vector that is to hold the result.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(IVector, IVector, Int32, Int32, TResult)
Aggregates the specified range of elements of a vector and returns the result.
bool TryAggregate(
IVector values1,
IVector values2,
int startIndex,
int endIndex,
out TResult result
)
Parameters
- values1 IVector
- A vector of values.
- values2 IVector
- A vector of values.
- startIndex Int32
- The zero-based index of the first element in values1 and values2 and values2 that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values1 and values2 and values2 that should be aggregated.
- result TResult
- The vector that is to hold the result.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.