Package edu.berkeley.cs.jqf.fuzz.util
Class MovingAverage
- java.lang.Object
-
- edu.berkeley.cs.jqf.fuzz.util.MovingAverage
-
public class MovingAverage extends Object
MovingAverage - A data structure for collecting a moving average.- Author:
- Raffi Sanna
-
-
Constructor Summary
Constructors Constructor Description MovingAverage(int cap)Constructs a moving average of the most recentcaparguments
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int a)Adds a number to the set of numbers used to find the moving average.doubleget()Gets the moving average itself, or0if nothing has been added.
-