AggregatorGroup<TResult>.TryAggregate Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

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

TryAggregate(IVector, TResult)

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

Parameters

values  IVector
A vector of values.
result  TResult
The aggregated result.

Return Value

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

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

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

Parameters

values  Vector<T>
A vector of values.
result  TResult
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, TResult)

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

Parameters

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

T

Return Value

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

See Also