Aggregation.Sum Method

Definition

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

Overload List

Sum<C>(ColumnSelector) Creates a descriptor that sums selected columns.
Sum<C>(C) Creates a descriptor that sums the specified column.

Sum<C>(ColumnSelector)

Creates a descriptor that sums selected columns.
C#
public static Aggregation<C, string> Sum<C>(
	ColumnSelector selector
)

Parameters

selector  ColumnSelector
The selector that identifies columns to aggregate.

Type Parameters

C
The type of the data frame column key.

Return Value

Aggregation<C, String>
A sum aggregation descriptor.

Exceptions

ArgumentNullExceptionselector is null.

Sum<C>(C)

Creates a descriptor that sums the specified column.
C#
public static Aggregation<C, string> Sum<C>(
	C key
)

Parameters

key  C
The key of the column to aggregate.

Type Parameters

C
The type of the data frame column key.

Return Value

Aggregation<C, String>
A sum aggregation descriptor.

Exceptions

See Also