Class Average


  • public class Average
    extends java.lang.Object
    Utility for averaging data.
    • Constructor Summary

      Constructors 
      Constructor Description
      Average()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(double value)
      Add a new entry and check if save should be done.
      double getAverageAndReset()  
      • Methods inherited from class java.lang.Object

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

      • Average

        public Average()
    • Method Detail

      • add

        public void add​(double value)
        Add a new entry and check if save should be done.
        Parameters:
        value - TPS value
      • getAverageAndReset

        public double getAverageAndReset()