TypePreservingAggregatorGroup.TryAggregate Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

TryAggregate<T>(IVector, T) Aggregates the elements of a vector and returns the result.
TryAggregate<T>(Vector<T>, T) Aggregates the elements of a vector and returns the result.
TryAggregate<T>(IEnumerable<T>, Boolean, T) Aggregates the elements of a sequence and returns the result.
TryAggregate<T>(IVector, Array1D<Int32>, Int32, T) Aggregates the specified elements of a vector and returns the result.
TryAggregate<T>(IVector, Int32, Int32, T) Aggregates the specified range of elements of a vector and returns the result.
TryAggregate<T>(Vector<T>, Array1D<Int32>, Int32, T) Aggregates the specified elements of a vector and returns the result.
TryAggregate<T>(Vector<T>, Int32, Int32, T) Aggregates the specified range of elements of a vector and returns the result.

TryAggregate<T>(IVector, T)

Aggregates the elements of a vector and returns the result.
C#
public bool TryAggregate<T>(
	IVector values,
	out T result
)

Parameters

values  IVector
A vector of values.
result  T
On return, the result of the aggregation.

Type Parameters

T

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

TryAggregate<T>(Vector<T>, T)

Aggregates the elements of a vector and returns the result.
C#
public bool TryAggregate<T>(
	Vector<T> values,
	out T result
)

Parameters

values  Vector<T>
A vector of values.
result  T
The result of the aggregation.

Type Parameters

T
The element type of the vector.

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

TryAggregate<T>(IEnumerable<T>, Boolean, T)

Aggregates the elements of a sequence and returns the result.
C#
public bool TryAggregate<T>(
	IEnumerable<T> values,
	bool checkForMissingValues,
	out T result
)

Parameters

values  IEnumerable<T>
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

T

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

TryAggregate<T>(IVector, Array1D<Int32>, Int32, T)

Aggregates the specified elements of a vector and returns the result.
C#
public bool TryAggregate<T>(
	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

T

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

TryAggregate<T>(IVector, Int32, Int32, T)

Aggregates the specified range of elements of a vector and returns the result.
C#
public bool TryAggregate<T>(
	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

T

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

TryAggregate<T>(Vector<T>, Array1D<Int32>, Int32, T)

Aggregates the specified elements of a vector and returns the result.
C#
public bool TryAggregate<T>(
	Vector<T> values,
	Array1D<int> indexes,
	int length,
	out T result
)

Parameters

values  Vector<T>
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

T

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

TryAggregate<T>(Vector<T>, Int32, Int32, T)

Aggregates the specified range of elements of a vector and returns the result.
C#
public bool TryAggregate<T>(
	Vector<T> values,
	int startIndex,
	int endIndex,
	out T result
)

Parameters

values  Vector<T>
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

T

Return Value

Boolean
true if the aggregation produced a result; otherwise false.

See Also