TypePreservingBinaryAggregatorGroup.Aggregate Method

Definition

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

Overload List

Aggregate<TResult>(Vector<TResult>, Vector<TResult>) Aggregates the elements of a vector and returns the result.
Aggregate<TResult>(IEnumerable<TResult>, IEnumerable<TResult>, Boolean) Aggregates the elements of a sequence and returns the result.
Aggregate<TResult>(ReadOnlySpan<TResult>, ReadOnlySpan<TResult>, Boolean) Aggregates the elements of a span and returns the result.
Aggregate<TResult>(Vector<TResult>, Vector<TResult>, IGrouping) Aggregates the elements of a vector according to the specified grouping.

Aggregate<TResult>(Vector<TResult>, Vector<TResult>)

Aggregates the elements of a vector and returns the result.
C#
public TResult Aggregate<TResult>(
	Vector<TResult> values1,
	Vector<TResult> values2
)

Parameters

values1  Vector<TResult>
A vector of values.
values2  Vector<TResult>
A vector of values.

Type Parameters

TResult
The element type of the vectors.

Return Value

TResult
The aggregated result..

Aggregate<TResult>(IEnumerable<TResult>, IEnumerable<TResult>, Boolean)

Aggregates the elements of a sequence and returns the result.
C#
public TResult Aggregate<TResult>(
	IEnumerable<TResult> values1,
	IEnumerable<TResult> values2,
	bool skipMissingValues = false
)

Parameters

values1  IEnumerable<TResult>
A sequence of values.
values2  IEnumerable<TResult>
A sequence of values.
skipMissingValues  Boolean  (Optional)
Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.

Type Parameters

TResult
The type of the elements of values1 and values2.

Return Value

TResult
The aggregate result.

Aggregate<TResult>(ReadOnlySpan<TResult>, ReadOnlySpan<TResult>, Boolean)

Aggregates the elements of a span and returns the result.
C#
public TResult Aggregate<TResult>(
	ReadOnlySpan<TResult> values1,
	ReadOnlySpan<TResult> values2,
	bool skipMissingValues = false
)

Parameters

values1  ReadOnlySpan<TResult>
A read-only span of values.
values2  ReadOnlySpan<TResult>
A read-only span of values.
skipMissingValues  Boolean  (Optional)
Optional. Specifies whether missing values should be excluded from the aggregation. The default is false.

Type Parameters

TResult
The element type of the spans.

Return Value

TResult
The aggregated result..

Aggregate<TResult>(Vector<TResult>, Vector<TResult>, IGrouping)

Aggregates the elements of a vector according to the specified grouping.
C#
public Vector<TResult> Aggregate<TResult>(
	Vector<TResult> values1,
	Vector<TResult> values2,
	IGrouping grouping
)

Parameters

values1  Vector<TResult>
The first vector to aggregate.
values2  Vector<TResult>
The second vector to aggregate.
grouping  IGrouping
A grouping.

Type Parameters

TResult

Return Value

Vector<TResult>
A vector containing the aggregated values.

See Also