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
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
The FullRunningAverage type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| FullRunningAverage | Initializes a new instance of the FullRunningAverage class | |
| FullRunningAverage(Int32, Double) | Initializes a new instance of the FullRunningAverage class |
Methods
| Name | Description | |
|---|---|---|
| AddDatum | ||
| ChangeDatum | ||
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetAverage | ||
| GetCount | ||
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Inverse | ||
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| RemoveDatum | ||
| ToString | (Overrides Object ToString .) |
See Also