Type Preserving Binary Aggregator Group.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 elements of a vector and returns the result. |
Try | Aggregates the elements of a sequence and returns the result. |
Try | Aggregates the specified range of elements of a vector and returns the result. |
Try | Aggregates the specified range of elements of a vector and returns the result. |
TryAggregate<TResult>(IVector, IVector, TResult)
Aggregates the elements of a vector and returns the result.
public bool TryAggregate<TResult>(
IVector values1,
IVector values2,
out TResult result
)
Parameters
- values1 IVector
- A vector of values.
- values2 IVector
- A vector of values.
- result TResult
- On return, the result of the aggregation.
Type Parameters
- TResult
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<TResult>(Vector<TResult>, Vector<TResult>, TResult)
Aggregates the elements of a vector and returns the result.
public bool TryAggregate<TResult>(
Vector<TResult> values1,
Vector<TResult> values2,
out TResult result
)
Parameters
- values1 Vector<TResult>
- A vector of values.
- values2 Vector<TResult>
- A vector of values.
- result TResult
- The result of the aggregation.
Type Parameters
- TResult
- The element type of the vectors.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<TResult>(IEnumerable<TResult>, IEnumerable<TResult>, Boolean, TResult)
Aggregates the elements of a sequence and returns the result.
public bool TryAggregate<TResult>(
IEnumerable<TResult> values1,
IEnumerable<TResult> values2,
bool skipMissingValues,
out TResult result
)
Parameters
- values1 IEnumerable<TResult>
- A sequence of values.
- values2 IEnumerable<TResult>
- 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
- TResult
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<TResult>(IVector, IVector, Int32, Int32, TResult)
Aggregates the specified range of elements of a vector and returns the result.
public bool TryAggregate<TResult>(
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 that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values1 and values2 that should be aggregated.
- result TResult
- The result of the aggregation.
Type Parameters
- TResult
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<TResult>(Vector<TResult>, Vector<TResult>, Int32, Int32, TResult)
Aggregates the specified range of elements of a vector and returns the result.
public bool TryAggregate<TResult>(
Vector<TResult> values1,
Vector<TResult> values2,
int startIndex,
int endIndex,
out TResult result
)
Parameters
- values1 Vector<TResult>
- A vector of values.
- values2 Vector<TResult>
- A vector of values.
- startIndex Int32
- The zero-based index of the first element in values1 and values2 that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values1 and values2 that should be aggregated.
- result TResult
- The result of the aggregation.
Type Parameters
- TResult
Return Value
Booleantrue if the aggregation produced a result; otherwise false.