ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.multiconnectionsocket
Class MovingWindowBuffer

java.lang.Object
  extended by com.github.mrstampy.esp.multiconnectionsocket.MovingWindowBuffer

public class MovingWindowBuffer
extends java.lang.Object

The Class MovingWindowBuffer.


Constructor Summary
MovingWindowBuffer(int capacity)
          Instantiates a new moving window buffer.
 
Method Summary
 void addAll(double... values)
          Adds the all.
 void clear()
          Clear.
 void resize(int newSize)
          Resize.
 double[] snapshot()
          Snapshot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovingWindowBuffer

public MovingWindowBuffer(int capacity)
Instantiates a new moving window buffer.

Parameters:
capacity - the capacity
Method Detail

addAll

public void addAll(double... values)
Adds the all.

Parameters:
values - the values

snapshot

public double[] snapshot()
Snapshot.

Returns:
the double[]

resize

public void resize(int newSize)
Resize.

Parameters:
newSize - the new size

clear

public void clear()
Clear.


brought to you by Mr. Stampy