Class MeanCalculator


  • public class MeanCalculator
    extends java.lang.Object
    Class to calculate the average in a stream of numbers on a continuous basis.
    • Constructor Summary

      Constructors 
      Constructor Description
      MeanCalculator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(float number)  
      float getMean()  
      • Methods inherited from class java.lang.Object

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

      • MeanCalculator

        public MeanCalculator()
    • Method Detail

      • add

        public void add​(float number)
      • getMean

        public float getMean()