org.simtk.util
Class DoubleRing

java.lang.Object
  extended by org.simtk.util.DoubleRing

public class DoubleRing
extends java.lang.Object


Constructor Summary
DoubleRing(int maxSize)
           
 
Method Summary
 boolean isEmpty()
           
 double mean()
          Compute mean value of the elements in the ring.
 void pop()
           
 void push(double d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleRing

public DoubleRing(int maxSize)
Method Detail

push

public void push(double d)

pop

public void pop()

isEmpty

public boolean isEmpty()

mean

public double mean()
Compute mean value of the elements in the ring.

Returns:
the mean value