Represents a method that aggregates data in a variable.
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public abstract class Aggregator
Public MustInherit Class Aggregator
public ref class Aggregator abstract
type Aggregator = class end
The Aggregator type exposes the following members.
Applies the aggregator to a variable and returns the result as a variable.
|Apply(Variable, Int32, Int32)|
Applies the aggregator to a range of observations of a variable.
|Equals| (Inherited from Object.)
Determines whether the specified Object
is equal to the current Object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Serves as a hash function for a particular type. (Inherited from Object.)
|GetType| (Inherited from Object.)
Gets the Type
of the current instance.
|MemberwiseClone| (Inherited from Object.)
Creates a shallow copy of the current Object
Gets an aggregator that returns the observation at the specified position.
Returns a string that represents the current object. (Inherited from Object.)
Returns an aggregator that uses observations from another variable to compute a weighted average.
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
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.
Supported in: 5.x, 4.x