|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.stat.Stat
net.spy.stat.ComputingStat
public class ComputingStat
Stat implementation that keeps averages and standard deviation and stuff. Basically stole from Scott Lamb's Axomol library.
| Constructor Summary | |
|---|---|
ComputingStat()
|
|
| Method Summary | |
|---|---|
void |
add(double value)
Add the given value to the current stat. |
void |
clear()
Clear the stats that have been accumulated so far. |
int |
getCount()
Get the number of times a value has been added to this stat. |
double |
getDecayAvg()
Get the decaying average of this series. |
double |
getMax()
Get the maximum value seen in this stat. |
double |
getMean()
Get the average value seen in this stat. |
double |
getMin()
Get the minimum value seen in this stat. |
String |
getStat()
Get the current value of this stat as a String. |
double |
getStddev()
Compute the standard deviation of the current series. |
double |
getSum()
Get the sum of all values added to this stat. |
| Methods inherited from class net.spy.stat.Stat |
|---|
getName, setName, toString |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComputingStat()
| Method Detail |
|---|
public void clear()
public void add(double value)
value - the valuepublic double getStddev()
public double getDecayAvg()
public String getStat()
Stat
getStat in class Statpublic double getMax()
public double getMean()
public double getMin()
public int getCount()
public double getSum()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||