org.eclipse.january.dataset

## Class RunningAverage

- java.lang.Object
- - org.eclipse.january.dataset.RunningAverage

-     public class RunningAverage
      extends Object

  A running mean class

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RunningAverage(IDataset dataset)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCount()`
    `Dataset` | `getCurrentAverage()`
    `void` | `update(IDataset dataset)` Update average

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RunningAverage

          public RunningAverage(IDataset dataset)

      Parameters:
        `dataset` - input

  - ### Method Detail

    - #### update

          public void update(IDataset dataset)

      Update average
      Parameters:
        `dataset` - input

    - #### getCount

          public int getCount()

      Returns:
        count

    - #### getCurrentAverage

          public Dataset getCurrentAverage()

      Returns:
        current average

Copyright © 2014–2022 Eclipse Foundation. All rights reserved.