Aggregator2<T, U>.TryAggregate Method

Definition

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

Overload List

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

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

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

Parameters

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

Return Value

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

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

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

Parameters

values1  IEnumerable<T>
A vector of values.
values2  IEnumerable<T>
A vector of values.
checkForMissingValues  Boolean
Indicates whether missing values should be filtered from the sequence.
result  U
The result of the aggregation.

Return Value

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

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

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

Parameters

values1  Vector<T>
A vector of values.
values2  Vector<T>
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  U
The result of the aggregation.

Return Value

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

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

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

Parameters

values1  Vector<T>
A vector of values.
values2  Vector<T>
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 and values2 that should be aggregated.
result  U
The result of the aggregation.

Return Value

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

See Also