Vector<T>.Aggregate By Method
Definition
Namespace: Numerics.NET
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 | Returns a new vector that aggregates the columns according to the specified grouping. |
Aggregate | Aggregates the vector according to the specified grouping. |
Aggregate | Returns a new vector that aggregates the columns according to the specified grouping. |
Aggregate | Returns a new matrix that aggregates the elements according to the specified pivot grouping. |
Aggregate | Returns a new matrix that aggregates the elements according to the specified pivot grouping. |
AggregateBy(IGrouping, TypePreservingAggregatorGroup)
Returns a new vector that aggregates the columns according to the specified grouping.
public Vector<T> AggregateBy(
IGrouping grouping,
TypePreservingAggregatorGroup aggregator
)
Parameters
- grouping IGrouping
- The grouping object.
- aggregator TypePreservingAggregatorGroup
- The aggregator to apply to each group.
Return Value
Vector<T>A new vector, with rows indexed by the index associated with grouping, and as values the result of applying aggregator to each group.
AggregateBy<U>(IGrouping, Aggregator<T, U>)
Aggregates the vector according to the specified grouping.
public Vector<U> AggregateBy<U>(
IGrouping grouping,
Aggregator<T, U> aggregator
)
Parameters
- grouping IGrouping
- An object that specifies the grouping.
- aggregator Aggregator<T, U>
- An aggregator.
Type Parameters
- U
- The type of the result of the aggregation.
Return Value
Vector<U>AggregateBy<U>(IGrouping, AggregatorGroup<U>)
Returns a new vector that aggregates the columns according to the specified grouping.
public Vector<U> AggregateBy<U>(
IGrouping grouping,
AggregatorGroup<U> aggregator
)
Parameters
- grouping IGrouping
- The grouping object.
- aggregator AggregatorGroup<U>
- The aggregator to apply to each group.
Type Parameters
- U
- The type of the result of the aggregator.
Return Value
Vector<U>A new vector, with rows indexed by the index associated with grouping, and as values the result of applying aggregator to each group.
AggregateBy<U>(IPivot, Aggregator<T, U>)
Returns a new matrix that aggregates the elements according to the specified pivot grouping.
public Matrix<U> AggregateBy<U>(
IPivot pivot,
Aggregator<T, U> aggregator
)
Parameters
- pivot IPivot
- A pivot grouping.
- aggregator Aggregator<T, U>
- The aggregator to apply to each group.
Type Parameters
- U
- The type of the result of the aggregator.
Return Value
Matrix<U>A new vector, with rows indexed by the index associated with pivot, and as values the result of applying aggregator to each group.
AggregateBy<U>(IPivot, AggregatorGroup<U>)
Returns a new matrix that aggregates the elements according to the specified pivot grouping.
public Matrix<U> AggregateBy<U>(
IPivot pivot,
AggregatorGroup<U> aggregator
)
Parameters
- pivot IPivot
- A pivot grouping.
- aggregator AggregatorGroup<U>
- The aggregator to apply to each group.
Type Parameters
- U
- The type of the result of the aggregator.
Return Value
Matrix<U>A new vector, with rows indexed by the index associated with pivot, and as values the result of applying aggregator to each group.