public class CircularBuffer extends java.lang.Object
| Constructor and Description | 
|---|
| CircularBuffer(int size) | 
| Modifier and Type | Method and Description | 
|---|---|
| double | get(int index) | 
| double | popBack()Pop value at back of buffer. | 
| double | popFront()Pop value at front of buffer. | 
| void | pushBack(double value)Push new value onto back of the buffer. | 
| void | pushFront(double value)Push new value onto front of the buffer. | 
| void | reset()Sets internal buffer contents to zero. | 
public CircularBuffer(int size)
size - The size of the circular buffer.public void pushFront(double value)
public void pushBack(double value)
public double popFront()
public double popBack()
public void reset()
public double get(int index)