|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--atropos.lp.AvnmpStat
This class is used to track statistics within the AVNMP system.
This research is funded by DARPA/ITO Contract Number: F30602-98-C-0230 supported by the Air Force Research Laboratory/IF.
Constructor Summary | |
AvnmpStat()
Reset all the values in this object to zero. |
Method Summary | |
double |
average()
Return the average of the sample values. |
double |
average(double val)
Compute the average of all the accumulated data including the data entered in the parameter. |
void |
display()
|
double |
rate()
Return the rate of change of the sample values. |
double |
rate(double val,
long time)
Compute the rate of change of all the accumulated data including the data entered in the parameter at the given time. |
void |
reset()
Set all the internal values to zero. |
void |
set(double val)
Set the object to hold a particular sample value. |
double |
sum()
Return the sum of the sample values. |
double |
sum(double val)
Add a new sample value to the sum. |
double |
variance()
Return the current variance. |
double |
variance(double val)
Compute the variance of all the accumulated data including the data entered in the parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AvnmpStat()
Method Detail |
public void display()
public void set(double val)
val
- The value to which the object should be set.public void reset()
public double variance(double val)
val
- A new sample value to be added to the existing data.public double sum(double val)
public double average(double val)
val
- A new sample value to be added to the existing data.public double rate(double val, long time)
val
- A new sample value to be added to the existing data.time
- The time of this sample.public double variance()
public double sum()
public double average()
public double rate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |