Class MovingAverage
A moving average.
Inheritance
System.Object
MovingAverage
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class MovingAverage : object
Constructors
MovingAverage(Int32)
Initializes a new instance of the MovingAverage class.
Declaration
public MovingAverage(int lookback)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lookback | The number of lookback values. |
Properties
Average
Gets the average.
Declaration
public long Average { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
Add(Int64)
Adds a sample.
Declaration
public void Add(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | The value to add. |