TypePreservingAggregatorGroup.Aggregate Method

Definition

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

Overload List

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

Aggregate<TResult>(Vector<TResult>)

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

Parameters

values  Vector<TResult>
A vector of values.

Type Parameters

TResult
The element type of the vector.

Return Value

TResult
The aggregated result..

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

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

Parameters

values  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 values.

Return Value

TResult
The aggregate result.

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

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

Parameters

values  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 vector.

Return Value

TResult
The aggregated result..

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

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

Parameters

values  Vector<TResult>
The vector to aggregate.
grouping  IGrouping
A grouping.

Type Parameters

TResult

Return Value

Vector<TResult>
A vector containing the aggregated values.

See Also