Aggregates the specified range of elements of a vector and returns the result.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public bool TryAggregate<U>(
Vector<U> values,
int startIndex,
int endIndex,
out T result
)
Public Function TryAggregate(Of U) (
values As Vector(Of U),
startIndex As Integer,
endIndex As Integer,
<OutAttribute> ByRef result As T
) As Boolean
public:
generic<typename U>
bool TryAggregate(
Vector<U>^ values,
int startIndex,
int endIndex,
[OutAttribute] T% result
)
member TryAggregate :
values : Vector<'U> *
startIndex : int *
endIndex : int *
result : 'T byref -> bool
Parameters
- values
- Type: Extreme.MathematicsVectorU
A vector of values. - startIndex
- Type: SystemInt32
The zero-based index of the first element
in values that should be aggregated. - endIndex
- Type: SystemInt32
The zero-based index of the last element
in values that should be aggregated. - result
- Type: T
The result of the aggregation.
Type Parameters
- U
Return Value
Type:
Boolean if the aggregation produced a result;
otherwise
.
Reference