DataFrame<R, C>.Aggregate Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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, U>(Func<Vector<T>, U>) Applies the specified aggregators to all the columns in the data frame.
Aggregate<T, U, V>(Func<Vector<T>, V>, Func<Vector<U>, V>) Applies the specified aggregators to all the columns in the data frame.
Aggregate<T, U, V, W>(Func<Vector<T>, W>, Func<Vector<U>, W>, Func<Vector<V>, W>) 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, U>(Func<Vector<T>, U>)

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

Parameters

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

Type Parameters

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

Return Value

Vector<U>
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, U, V>(Func<Vector<T>, V>, Func<Vector<U>, V>)

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

Parameters

aggregator1  Func<Vector<T>, V>
A function that aggregates multiple values into one.
aggregator2  Func<Vector<U>, V>
A function that aggregates multiple values into one.

Type Parameters

T
The element type of the input to aggregator1
U
The element type of the input to aggregator2
V
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, U, V, W>(Func<Vector<T>, W>, Func<Vector<U>, W>, Func<Vector<V>, W>)

Applies the specified aggregators to all the columns in the data frame.
C#
public DataFrame<string, C> Aggregate<T, U, V, W>(
	Func<Vector<T>, W> aggregator1,
	Func<Vector<U>, W> aggregator2,
	Func<Vector<V>, W> aggregator3
)

Parameters

aggregator1  Func<Vector<T>, W>
A function that aggregates multiple values into one.
aggregator2  Func<Vector<U>, W>
A function that aggregates multiple values into one.
aggregator3  Func<Vector<V>, W>
A function that aggregates multiple values into one.

Type Parameters

T
The element type of the input to aggregator1
U
The element type of the input to aggregator2
V
The element type of the input to aggregator3
W
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