Accumulating Aggregator<T, TResult, TAccumulator>.Aggregate By Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Aggregate | Groups the elements of a vector according to the specified grouping. |
Aggregate | Aggregates the elements of a vector according to the specified level indexes. |
Aggregate | Groups the elements of a vector according to the specified level indexes. |
AggregateBy(Vector<T>, ReadOnlySpan<Int32>, Nullable<Boolean>, Vector<TResult>)
Aggregates the elements of a vector according to the specified level indexes.
public override Vector<TResult> AggregateBy(
Vector<T> values,
ReadOnlySpan<int> levels,
bool? skipMissingValues,
Vector<TResult> result
)
Parameters
- values Vector<T>
- The vector to aggregate.
- levels ReadOnlySpan<Int32>
- An array of level indexes.
- skipMissingValues Nullable<Boolean>
- Specifies whether missing values should be excluded from the aggregation. If null, then the value is inferred from values.
- result Vector<TResult>
- The vector that is to hold the result. May be null.