text: /*
   *  Name:           ROUND MEMORY
   *  Header:         RoundMemory.h
   *  
   *  Description:    
   *      Round Memory Averaging for Realtime Datasampling and processing 
   * 
   *  Author:         Rithvik Nishad (https://github.com/rithviknishad)
   * 
   */
  
  #ifndef __ROUND_MEMORY_H
  #define __ROUND_MEMORY_H
  
  template<typename T>
  class RoundMemory {
      
      T * samples;
      unsigned short size, cptr;
  
      public:
  
      RoundMemory();
      RoundMemory(unsigned short _size, T initValue);
  
      T avg();
      T append(T sample);
  
      ~RoundMemory();
  };
  #endif
  