|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.util.DataUtils.MinMaxAveTracker
public static class DataUtils.MinMaxAveTracker
Class for tracking the minimum and maximum values of a set of data.
| Constructor Summary | |
|---|---|
DataUtils.MinMaxAveTracker()
|
|
| Method Summary | |
|---|---|
void |
addValue(double val)
Add a new value to the tracker. |
double |
getAverage()
Computes the average of all values that have been added to this tracker. |
double |
getMax()
Returns the maximum value that has been added to this tracker, or negative infinity if no values have been added. |
double |
getMin()
Returns the minimum value that has been added to this tracker, or positive infinity if no values have been added. |
int |
getNum()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataUtils.MinMaxAveTracker()
| Method Detail |
|---|
public void addValue(double val)
val - value to be addedpublic double getMin()
public double getMax()
public double getAverage()
public int getNum()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||