Helper class which can be used to compute the moving average of a sequence of numbers.
Namespace:
RightEdge.IndicatorsAssembly: Indicators (in Indicators.dll)
Version: 2008.1.0.0 (2008.1.0.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class AverageQueue |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class AverageQueue |
| Visual C++ |
|---|
[SerializableAttribute] public ref class AverageQueue |
Remarks
This class calculates the average of the last n numbers passed to it with
the AddValue(Double) method. The value of n is specified as a constructor argument.
The current average is accessible with the Average property.