|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectDataSet
public class DataSet
Computes the average of a set of data values.
| Constructor Summary | |
|---|---|
DataSet()
Constructs an empty data set. |
|
| Method Summary | |
|---|---|
void |
add(Measurable x)
Adds a data value to the data set. |
double |
getAverage()
Gets the average of the added data. |
Measurable |
getMaximum()
Gets the largest of the added data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSet()
| Method Detail |
|---|
public void add(Measurable x)
x - a data valuepublic double getAverage()
public Measurable getMaximum()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||