Class RotatingBuffer


  • public class RotatingBuffer
    extends java.lang.Object
    Stores time series values in a rotating buffer. If the buffer's capacity is exceeded the oldest values are replaced.
    • Constructor Summary

      Constructors 
      Constructor Description
      RotatingBuffer​(int capacity)  
    • Method Summary

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

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

      • RotatingBuffer

        public RotatingBuffer​(int capacity)
    • Method Detail

      • add

        public void add​(float value)
      • getAverageValue

        public float getAverageValue()