Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference

Skip Navigation LinksHome»Documentation»Reference»Extreme.DataAnalysis.Linq»LinqExtensions Class»Methods»Aggregate Method Overloads»Aggregate(R, C, TAccumulate) Method (DataFrame(R, C), TAccumulate, Func(TAccumulate, DataFrameRow(R, C), TAccumulate))

LinqExtensionsAggregateR, C, TAccumulate Method (DataFrameR, C, TAccumulate, FuncTAccumulate, DataFrameRowR, C, TAccumulate)

Extreme Optimization Numerical Libraries for .NET Professional
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
Syntax

C#
VB
C++
F#
Copy
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: TAccumulate
The 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).
Exceptions

ExceptionCondition
ArgumentNullException

frame is .

-or-

func is .

See Also

Reference

LinqExtensions Class
Aggregate Overload
Extreme.DataAnalysis.Linq Namespace

Copyright (c) 2004-2023 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2023, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.