|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aelitis.azureus.core.util.average.RunningAverage
public class RunningAverage
Implements a simple running average.
Constructor Summary | |
---|---|
RunningAverage()
Create a new running average. |
Method Summary | |
---|---|
double |
getAverage()
Return average-so-far. |
void |
reset()
sets back to start-of-day |
double |
update(double newValue)
Update average and return average-so-far. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunningAverage()
Method Detail |
---|
public void reset()
Average
reset
in interface Average
public double update(double newValue)
update
in interface Average
public double getAverage()
getAverage
in interface Average
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |