Aggregator Group<T>.Try Aggregate Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |
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 elements of a vector and returns the result. |
Try | Aggregates the specified range of 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, T)
Aggregates the elements of a vector and returns the result.
public bool TryAggregate(
IVector values,
out T result
)
Parameters
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<U>(Vector<U>, T)
Aggregates the elements of a vector and returns the result.
public bool TryAggregate<U>(
Vector<U> values,
out T result
)
Parameters
Type Parameters
- U
- The element type of the vector.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<U>(IEnumerable<U>, Boolean, T)
Aggregates the elements of a sequence and returns the result.
public bool TryAggregate<U>(
IEnumerable<U> values,
bool checkForMissingValues,
out T result
)
Parameters
- values IEnumerable<U>
- A sequence of values.
- checkForMissingValues Boolean
- Indicates whether missing values should be filtered from the sequence.
- result T
- The result of the aggregation.
Type Parameters
- U
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(IVector, Array1D<Int32>, Int32, T)
Aggregates the specified elements of a vector and returns the result.
public bool TryAggregate(
IVector values,
Array1D<int> indexes,
int length,
out T result
)
Parameters
- values IVector
- A vector of values.
- indexes Array1D<Int32>
- An integer array containing the indexes of the elements of values that will be aggregated.
- length Int32
- The number of values to aggregate.
- result T
- The vector that is to hold the result.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate(IVector, Int32, Int32, T)
Aggregates the specified range of elements of a vector and returns the result.
public bool TryAggregate(
IVector values,
int startIndex,
int endIndex,
out T result
)
Parameters
- values IVector
- A vector of values.
- startIndex Int32
- The zero-based index of the first element in values that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values that should be aggregated.
- result T
- The vector that is to hold the result.
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<U>(IVector, Array1D<Int32>, Int32, T)
Aggregates the specified elements of a vector and returns the result.
public bool TryAggregate<U>(
IVector values,
Array1D<int> indexes,
int length,
out T result
)
Parameters
- values IVector
- A vector of values.
- indexes Array1D<Int32>
- An integer array containing the indexes of the elements of values that will be aggregated.
- length Int32
- The number of values to aggregate.
- result T
- The result of the aggregation.
Type Parameters
- U
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<U>(IVector, Int32, Int32, T)
Aggregates the specified range of elements of a vector and returns the result.
public bool TryAggregate<U>(
IVector values,
int startIndex,
int endIndex,
out T result
)
Parameters
- values IVector
- A vector of values.
- startIndex Int32
- The zero-based index of the first element in values that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values that should be aggregated.
- result T
- The result of the aggregation.
Type Parameters
- U
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<U>(Vector<U>, Array1D<Int32>, Int32, T)
Aggregates the specified elements of a vector and returns the result.
public bool TryAggregate<U>(
Vector<U> values,
Array1D<int> indexes,
int length,
out T result
)
Parameters
- values Vector<U>
- A vector of values.
- indexes Array1D<Int32>
- An integer array containing the indexes of the elements of values that will be aggregated.
- length Int32
- The number of values to aggregate.
- result T
- The result of the aggregation.
Type Parameters
- U
Return Value
Booleantrue if the aggregation produced a result; otherwise false.
TryAggregate<U>(Vector<U>, Int32, Int32, T)
Aggregates the specified range of elements of a vector and returns the result.
public bool TryAggregate<U>(
Vector<U> values,
int startIndex,
int endIndex,
out T result
)
Parameters
- values Vector<U>
- A vector of values.
- startIndex Int32
- The zero-based index of the first element in values that should be aggregated.
- endIndex Int32
- The zero-based index of the last element in values that should be aggregated.
- result T
- The result of the aggregation.
Type Parameters
- U
Return Value
Booleantrue if the aggregation produced a result; otherwise false.