DataFrame<R, C>.Aggregate Method

Definition

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

Overload List

Aggregate<T>(AggregatorGroup<T>) Applies the specified aggregator to all the columns in the data frame.
Aggregate<T>(AggregatorGroup<T>[]) Applies the specified aggregators to all the columns in the data frame.
Aggregate<T, TResult>(Func<Vector<T>, TResult>) Applies the specified aggregators to all the columns in the data frame.
Aggregate<T1, T2, TResult>(Func<Vector<T1>, TResult>, Func<Vector<T2>, TResult>) Applies the specified aggregators to all the columns in the data frame.
Aggregate<T1, T2, T3, TResult>(Func<Vector<T1>, TResult>, Func<Vector<T2>, TResult>, Func<Vector<T3>, TResult>) Applies the specified aggregators to all the columns in the data frame.

Aggregate<T>(AggregatorGroup<T>)

Applies the specified aggregator to all the columns in the data frame.
C#
public Vector<T> Aggregate<T>(
	AggregatorGroup<T> aggregator
)

Parameters

aggregator  AggregatorGroup<T>
The aggregator to use.

Type Parameters

T
The type of the result of the aggregation.

Return Value

Vector<T>
A vector that contains the result of the aggregations indexed by the data frame's column index.

Aggregate<T>(AggregatorGroup<T>[])

Applies the specified aggregators to all the columns in the data frame.
C#
public DataFrame<string, C> Aggregate<T>(
	params AggregatorGroup<T>[] aggregators
)

Parameters

aggregators  AggregatorGroup<T>[]
One or more aggregators to use.

Type Parameters

T
The type of the result of the aggregation.

Return Value

DataFrame<String, C>
A new data frame that contains the result of the aggregations with rows indexed by the names of the aggregators and columns indexed by the data frame's column index.

Aggregate<T, TResult>(Func<Vector<T>, TResult>)

Applies the specified aggregators to all the columns in the data frame.
C#
public Vector<TResult> Aggregate<T, TResult>(
	Func<Vector<T>, TResult> aggregator
)

Parameters

aggregator  Func<Vector<T>, TResult>
One or more aggregators to use.

Type Parameters

T
The element type of the input to the aggregation.
TResult
The type of the result of the aggregation.

Return Value

Vector<TResult>
A new data frame that contains the result of the aggregations with rows indexed by the names of the aggregators and columns indexed by the data frame's column index.

Aggregate<T1, T2, TResult>(Func<Vector<T1>, TResult>, Func<Vector<T2>, TResult>)

Applies the specified aggregators to all the columns in the data frame.
C#
public DataFrame<string, C> Aggregate<T1, T2, TResult>(
	Func<Vector<T1>, TResult> aggregator1,
	Func<Vector<T2>, TResult> aggregator2
)

Parameters

aggregator1  Func<Vector<T1>, TResult>
A function that aggregates multiple values into one.
aggregator2  Func<Vector<T2>, TResult>
A function that aggregates multiple values into one.

Type Parameters

T1
The element type of the input to aggregator1
T2
The element type of the input to aggregator2
TResult
The type of the result of the aggregation.

Return Value

DataFrame<String, C>
A new data frame that contains the result of the aggregations with rows indexed by the names of the aggregators and columns indexed by the data frame's column index.

Aggregate<T1, T2, T3, TResult>(Func<Vector<T1>, TResult>, Func<Vector<T2>, TResult>, Func<Vector<T3>, TResult>)

Applies the specified aggregators to all the columns in the data frame.
C#
public DataFrame<string, C> Aggregate<T1, T2, T3, TResult>(
	Func<Vector<T1>, TResult> aggregator1,
	Func<Vector<T2>, TResult> aggregator2,
	Func<Vector<T3>, TResult> aggregator3
)

Parameters

aggregator1  Func<Vector<T1>, TResult>
A function that aggregates multiple values into one.
aggregator2  Func<Vector<T2>, TResult>
A function that aggregates multiple values into one.
aggregator3  Func<Vector<T3>, TResult>
A function that aggregates multiple values into one.

Type Parameters

T1
The element type of the input to aggregator1
T2
The element type of the input to aggregator2
T3
The element type of the input to aggregator3
TResult
The type of the result of the aggregation.

Return Value

DataFrame<String, C>
A new data frame that contains the result of the aggregations with rows indexed by the names of the aggregators and columns indexed by the data frame's column index.

See Also