Accumulator<T, U> Class

Represents an object that performs incremental calculations.


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

Type Parameters

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


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


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


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