Class ValueHistory


  • public class ValueHistory
    extends Object
    Saves the last n Values and can calculate the average of it.
    • Constructor Detail

      • ValueHistory

        public ValueHistory()
      • ValueHistory

        public ValueHistory​(int capacity)
    • Method Detail

      • setCapacity

        public void setCapacity​(int capacity)
      • clear

        public void clear()
      • add

        public void add​(float value)
      • getAvg

        public float getAvg()