Type Preserving Aggregator Group.Aggregate Into Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.4.0
Overload List
| Aggregate | Aggregates the specified values according to the specified grouping. |
| Aggregate | Aggregates the specified values according to the specified grouping. |
| Aggregate | Aggregates values over each group and writes the results into a span. |
| Aggregate | Groups the elements of a vector according to the specified grouping. |
| Aggregate | Groups the elements of a vector according to the specified level indexes. |
AggregateInto<TResult>(IVector, IGrouping, IVector)
Aggregates the specified values according to the specified grouping.
public IVector AggregateInto<TResult>(
IVector values,
IGrouping grouping,
IVector? result
)
Parameters
- values IVector
- A vector of values.
- grouping IGrouping
- An object that specifies the grouping of elements of values.
- result IVector
- The result of the aggregation.
Type Parameters
- TResult
- The element type of values.
Return Value
IVectorA reference to result.
AggregateInto<TResult>(IVector, IGrouping, Vector<TResult>)
Aggregates the specified values according to the specified grouping.
public Vector<TResult> AggregateInto<TResult>(
IVector values,
IGrouping grouping,
Vector<TResult>? result
)
Parameters
- values IVector
- A vector of values.
- grouping IGrouping
- An object that specifies the grouping of elements of values.
- result Vector<TResult>
- The result of the aggregation.
Type Parameters
- TResult
- The element type of values.
Return Value
Vector<TResult>A reference to result.
AggregateInto<TResult>(ReadOnlySpan<TResult>, IGrouping, Span<TResult>)
Aggregates values over each group and writes the results into a span.
public void AggregateInto<TResult>(
ReadOnlySpan<TResult> values,
IGrouping grouping,
Span<TResult> result
)
Parameters
- values ReadOnlySpan<TResult>
- A contiguous read-only span of values.
- grouping IGrouping
- An object that specifies the grouping of elements of values.
- result Span<TResult>
- A span that will receive one aggregated value per group. Must have length equal to Count.
Type Parameters
- TResult
- The element type of both the input values and the result.
AggregateInto<TResult>(Vector<TResult>, IGrouping, Vector<TResult>)
Groups the elements of a vector according to the specified grouping.
public Vector<TResult> AggregateInto<TResult>(
Vector<TResult> values,
IGrouping grouping,
Vector<TResult>? result
)
Parameters
- values Vector<TResult>
- The vector to aggregate.
- grouping IGrouping
- A grouping.
- result Vector<TResult>
- The vector that is to hold the result. May be null.
Type Parameters
- TResult
Return Value
Vector<TResult>AggregateInto<TResult>(Vector<TResult>, Int32[], Vector<TResult>)
Groups the elements of a vector according to the specified level indexes.
public Vector<TResult> AggregateInto<TResult>(
Vector<TResult> values,
int[] levels,
Vector<TResult> result
)
Parameters
- values Vector<TResult>
- The vector to aggregate.
- levels Int32[]
- An array of level indexes.
- result Vector<TResult>
- The vector that is to hold the result. May be null.
Type Parameters
- TResult