Helper class which can be used to compute the moving average of a sequence of numbers.

Namespace: RightEdge.Indicators
Assembly: Indicators (in Indicators.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
[SerializableAttribute]
public class AverageQueue
Visual Basic
<SerializableAttribute>
Public Class AverageQueue
Visual C++
[SerializableAttribute]
public ref class AverageQueue
F#
[<SerializableAttribute>]
type AverageQueue =  class end

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.

Inheritance Hierarchy

System..::..Object
  RightEdge.Indicators..::..AverageQueue

See Also