|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.util.profiling.DataItem avrora.util.profiling.MinMaxMean
This models the min, max, mean, accumulation, total, and number of occurrences of min and max in a stream of integers.
Field Summary | |
int |
accumulation
|
int |
countMaximum
|
int |
countMinimum
|
protected java.lang.String |
cumulname
|
float |
mean
|
int |
observedMaximum
|
int |
observedMinimum
|
protected boolean |
someData
|
int |
total
|
protected java.lang.String |
totalname
|
Fields inherited from class avrora.util.profiling.DataItem |
name |
Constructor Summary | |
MinMaxMean(java.lang.String newname)
Public constructor initializes the statistics for a sequence of integers. |
|
MinMaxMean(java.lang.String newname,
java.lang.String tn,
java.lang.String cn)
Public constructor initializes the statistics for a sequence of integers. |
Method Summary | |
boolean |
hasData()
|
MinMaxMean |
merge(MinMaxMean m)
Merge the results of two MinMaxMean objects into one. |
void |
processData()
process the data so far and update internal statistics. |
void |
record(int value)
Update the statistical data for the next input value. |
void |
textReport()
Generate a textual report of the data gathered. |
java.lang.String |
toString()
|
Methods inherited from class avrora.util.profiling.DataItem |
getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public float mean
public int observedMaximum
public int observedMinimum
public int countMinimum
public int countMaximum
public int total
public int accumulation
protected boolean someData
protected java.lang.String totalname
protected java.lang.String cumulname
Constructor Detail |
public MinMaxMean(java.lang.String newname)
public MinMaxMean(java.lang.String newname, java.lang.String tn, java.lang.String cn)
Method Detail |
public void record(int value)
public void processData()
processData
in class DataItem
public void textReport()
textReport
in class DataItem
public MinMaxMean merge(MinMaxMean m)
public boolean hasData()
hasData
in class DataItem
public java.lang.String toString()
toString
in class DataItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |