Package 

Class AverageTracker

    • Constructor Summary

      Constructors 
      Constructor Description
      AverageTracker(int cycleCount) Creates a new instance of the AverageTracker class.
    • Method Summary

      Modifier and Type Method Description
      double add(double value) Adds a new value to the running average.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AverageTracker

        AverageTracker(int cycleCount)
        Creates a new instance of the AverageTracker class.
        Parameters:
        cycleCount - number of cycles to count until average is updated.
    • Method Detail

      • add

         double add(double value)

        Adds a new value to the running average.

        Parameters:
        value - new value being added.