|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.util.data.StatCollector
org.ascape.util.data.StatCollectorCSA
org.ascape.util.data.StatCollectorCSAMM
org.ascape.util.data.StatCollectorCSAMMVar
public class StatCollectorCSAMMVar
Stores aggregate data for values obtained for a statistic, including statistical variance. See StatCollectorCSA for an example.
StatCollector,
StatCollectorCond,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.ascape.util.data.StatCollectorCSA |
|---|
sum |
| Fields inherited from class org.ascape.util.data.StatCollector |
|---|
allMeasureNames, allMeasureNamesShort, autoCollect, COLLECTING, count, name, NOT_COLLECTING, SET_BY_DATAGROUP |
| Constructor Summary | |
|---|---|
StatCollectorCSAMMVar()
Constructs a new StatCollectorCSAMMVar. |
|
StatCollectorCSAMMVar(java.lang.String name)
Constructs a new StatCollectorCSAMMVar. |
|
StatCollectorCSAMMVar(java.lang.String name,
boolean autoCollect)
Constructs a new StatCollectorCSAMMVar. |
|
| Method Summary | |
|---|---|
void |
addValue(double value)
Add the value, incrementing count, adding sum, checking for minimum and maximum, and adding to a record of data used for calculating variance and standard deviation. |
void |
clear()
Sets all values statistics to base values (0 or max.) Clears variance vector. |
double |
getStDev()
Returns the standard deviation of the current data. |
double |
getVar()
Returns the statistical variance of the current data. |
| Methods inherited from class org.ascape.util.data.StatCollectorCSAMM |
|---|
getMax, getMin |
| Methods inherited from class org.ascape.util.data.StatCollectorCSA |
|---|
getAvg, getSum, getTotal |
| Methods inherited from class org.ascape.util.data.StatCollector |
|---|
addValueFor, calculateCollection, calculateIterator, calculateValue, compareTo, createDataSeries, getAllDataSeries, getAllMeasureNames, getAllMeasureNamesShort, getCollectingLongitudinalDataMode, getCount, getDataGroup, getDataSeries, getName, getValue, isAutoCollect, isCalculated, isCollectingLongitudinalData, isPhase2, setAutoCollect, setCollectingLongitudinalDataMode, setDataGroup, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatCollectorCSAMMVar()
public StatCollectorCSAMMVar(java.lang.String name,
boolean autoCollect)
name - the name of the stat collector.autoCollect - should the stat be collected automatically?public StatCollectorCSAMMVar(java.lang.String name)
name - the name of the stat collector.| Method Detail |
|---|
public void clear()
clear in class StatCollectorCSAMMpublic void addValue(double value)
addValue in class StatCollectorCSAMMpublic double getVar()
public double getStDev()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||