Numerical Components for .NET
Namespace: Extreme.StatisticsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 4.2.11333.0 (4.2.12253.0)
public abstract class Aggregator
Public MustInherit Class Aggregator
public ref class Aggregator abstract
type Aggregator = class end
Use the Aggregator class to aggregate the observations in a Variable.
The Apply(Variable, Int32, Int32) method has two overloads. The first overload aggregates the observations
of a variable over a specified interval and returns the result. The second overload aggregates the observations
over intervals with the specified boundaries, and returns the results in a new variable.
A number of aggregators have been predefined. These are exposed as staticSharedstaticstatic (Shared in Visual Basic)
fields and methods of the Aggregator class. These include aggregators that return the first,
last, smallest and largest observation in an interval, as well as sums, averages, and other summary statistics.
To define a custom aggregator, create a class that inherits from Aggregator
and overrides the Apply(Variable, Int32, Int32) method. In the class constructor,
you should call the base constructor with one argument: the type of variable returned by the aggregator.
Copyright © 2003-2013,
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.