Package nl.colorize.multimedialib.math
Class RotatingBuffer
- java.lang.Object
-
- nl.colorize.multimedialib.math.RotatingBuffer
-
public class RotatingBuffer extends java.lang.ObjectStores 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 voidadd(float value)floatgetAverageValue()
-