Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0