Applies an accumulator function over the rows of a data frame.
The specified seed value is used as the initial accumulator value.
Namespace:
Extreme.DataAnalysis.Linq
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static TAccumulate Aggregate<R, C, TAccumulate>(
this DataFrame<R, C> frame,
TAccumulate seed,
Func<TAccumulate, DataFrameRow<R, C>, TAccumulate> func
)
<ExtensionAttribute>
Public Shared Function Aggregate(Of R, C, TAccumulate) (
frame As DataFrame(Of R, C),
seed As TAccumulate,
func As Func(Of TAccumulate, DataFrameRow(Of R, C), TAccumulate)
) As TAccumulate
public:
[ExtensionAttribute]
generic<typename R, typename C, typename TAccumulate>
static TAccumulate Aggregate(
DataFrame<R, C>^ frame,
TAccumulate seed,
Func<TAccumulate, DataFrameRow<R, C>^, TAccumulate>^ func
)
[<ExtensionAttribute>]
static member Aggregate :
frame : DataFrame<'R, 'C> *
seed : 'TAccumulate *
func : Func<'TAccumulate, DataFrameRow<'R, 'C>, 'TAccumulate> -> 'TAccumulate
Parameters
- frame
- Type: Extreme.DataAnalysisDataFrameR, C
A data frame to project. - seed
- Type: TAccumulate
The initial accumulator value. - func
- Type: SystemFuncTAccumulate, DataFrameRowR, C, TAccumulate
An accumulator function to be invoked on each element.
Type Parameters
- R
- The element type of the row index of the data frame.
- C
- The element type of the column index of the data frame.
- TAccumulate
- The type of the accumulated value.
Return Value
Type:
TAccumulateThe final accumulator value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataFrameR,
C. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference