FullRunningAverage ClassNReco.Recommender Class Library
A simple class that can keep track of a running average of a series of numbers. One can add to or remove from the series, as well as update a datum in the series. The class does not actually keep track of the series of values, just its running average, so it doesn't even matter if you remove/change a value that wasn't added.
Inheritance Hierarchy

System Object
  NReco.CF.Taste.Impl.Common FullRunningAverage
    NReco.CF.Taste.Impl.Common FullRunningAverageAndStdDev

Namespace: NReco.CF.Taste.Impl.Common
Assembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class FullRunningAverage : IRunningAverage

The FullRunningAverage type exposes the following members.

Constructors

  NameDescription
Public methodFullRunningAverage 
Initializes a new instance of the FullRunningAverage class
Public methodFullRunningAverage(Int32, Double)
Initializes a new instance of the FullRunningAverage class
Top
Methods

  NameDescription
Public methodAddDatum
Public methodChangeDatum
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAverage
Public methodGetCount
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverse
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveDatum
Public methodToString (Overrides Object ToString .)
Top
See Also