Accumulator<T, U> Class

Represents an object that performs incremental calculations.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public class Accumulator<T, U> : IAccumulator<T, U>
Inheritance
Object  →  Accumulator<T, U>
Implements
IAccumulator<T, U>

Type Parameters

T
The type of the input to the accumulator.
U
The type of the output of the accumulator.

Constructors

Accumulator<T, U>Initializes a new instance of the Accumulator<T, U> class

Properties

CurrentValue Gets the current value of the accumulator.
HasValue Gets whether the accumulator has received enough data to compute a value.

Methods

Add Updates the accumulator with the specified value.
AddMissing Updates the accumulator with a missing value.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Remove Updates the accumulator by removing the specified value.
RemoveMissing Updates the accumulator by removing a missing value.
Reset Resets the accumulator to its initial state.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also