public class ObjectMultiTimeVaryingStat extends SimpleStatsTimeVarying implements ObjectIndexedStatistics
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Object,SampleStatistics> |
allSampleStat |
diff, eventList, lastTime, mean, startTime, variancecount, DEFAULT_NAME, DEFAULT_NUMBER_FORMAT, maxObs, minObs, name, numberFormatEOL| Constructor and Description |
|---|
ObjectMultiTimeVaryingStat() |
ObjectMultiTimeVaryingStat(java.lang.String property) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Object,java.lang.Integer> |
getAllCount()
Gets the current number of observations for all of the properties in the
indexed property associated with this statistic.
|
java.util.Map<java.lang.Object,java.lang.Double> |
getAllMaxObs()
Gets the maximum value of all of the properties in the indexed property
associated with this statistic.
|
java.util.Map<java.lang.Object,java.lang.Double> |
getAllMean()
Gets the current mean of all of the properties in the indexed property
associated with this statistic.
|
java.util.Map<java.lang.Object,java.lang.Double> |
getAllMinObs()
Gets the minimum value of all of the properties in the indexed property
associated with this statistic.
|
java.util.Map<java.lang.Object,SampleStatistics> |
getAllSampleStat()
Gets the underlying SampleStatistics for all of the properties in the
indexed property associated with this statistic.
|
java.util.Map<java.lang.Object,java.lang.Double> |
getAllStandardDeviation()
Gets the current standard deviation of all of the properties in the
indexed property associated with this statistic.
|
java.util.Map<java.lang.Object,java.lang.Double> |
getAllVariance()
Gets the current variance of all of the properties in the indexed
property associated with this statistic.
|
int |
getCount(java.lang.Object source) |
double |
getMaxObs(java.lang.Object source) |
double |
getMean(java.lang.Object source) |
double |
getMinObs(java.lang.Object source) |
double |
getStandardDeviation(java.lang.Object source) |
double |
getVariance(java.lang.Object source) |
void |
newObservation(double value,
java.lang.Object source)
Adds a new observation for the given member of the collection of
properties associated with this SampleStatistic.
|
void |
newObservation(java.lang.Number newObs,
java.lang.Object source)
Adds a new observation for the given member of the collection of
properties associated with this SampleStatistic.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
If the PropertyChangeEvent contains the property this SampleStatistic is
associated with, record the value as a new observation.
|
void |
reset()
Should reset/initialize all relevant counters.
|
java.lang.String |
toString()
Return a String containing the Name, SamplingType, and the DataLine for
this SampleStatistic.
|
getEventList, getEventListID, getMean, getSamplingType, getStandardDeviation, getStartTime, getVariance, newObservation, setEventList, setEventListID, setSamplingTypeclone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, setName, setNumberFormatprivate final java.util.Map<java.lang.Object,SampleStatistics> allSampleStat
public ObjectMultiTimeVaryingStat()
public ObjectMultiTimeVaryingStat(java.lang.String property)
public void reset()
SampleStatisticsreset in interface SampleStatisticsreset in class SimpleStatsTimeVaryingpublic void newObservation(double value,
java.lang.Object source)
ObjectIndexedStatisticsnewObservation in interface ObjectIndexedStatisticsvalue - The current value of the property.public void newObservation(java.lang.Number newObs,
java.lang.Object source)
ObjectIndexedStatisticsnewObservation in interface ObjectIndexedStatisticsnewObs - The new observationpublic void propertyChange(java.beans.PropertyChangeEvent evt)
AbstractSimpleStatsIf the name of the property is "reset" and the value of the property is the name of the property that this SampleStatistic is associated with, then reset this SampleStatistic.
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class AbstractSimpleStatsevt - Given PropertyChangeEventpublic double getMean(java.lang.Object source)
getMean in interface ObjectIndexedStatisticspublic double getVariance(java.lang.Object source)
getVariance in interface ObjectIndexedStatisticspublic double getStandardDeviation(java.lang.Object source)
getStandardDeviation in interface ObjectIndexedStatisticspublic int getCount(java.lang.Object source)
getCount in interface ObjectIndexedStatisticspublic double getMinObs(java.lang.Object source)
getMinObs in interface ObjectIndexedStatisticspublic double getMaxObs(java.lang.Object source)
getMaxObs in interface ObjectIndexedStatisticspublic java.util.Map<java.lang.Object,java.lang.Double> getAllMean()
ObjectIndexedStatisticsgetAllMean in interface ObjectIndexedStatisticspublic java.util.Map<java.lang.Object,java.lang.Double> getAllVariance()
ObjectIndexedStatisticsgetAllVariance in interface ObjectIndexedStatisticspublic java.util.Map<java.lang.Object,java.lang.Double> getAllStandardDeviation()
ObjectIndexedStatisticsgetAllStandardDeviation in interface ObjectIndexedStatisticspublic java.util.Map<java.lang.Object,java.lang.Integer> getAllCount()
ObjectIndexedStatisticsgetAllCount in interface ObjectIndexedStatisticspublic java.util.Map<java.lang.Object,java.lang.Double> getAllMinObs()
ObjectIndexedStatisticsgetAllMinObs in interface ObjectIndexedStatisticspublic java.util.Map<java.lang.Object,java.lang.Double> getAllMaxObs()
ObjectIndexedStatisticsgetAllMaxObs in interface ObjectIndexedStatisticspublic java.util.Map<java.lang.Object,SampleStatistics> getAllSampleStat()
ObjectIndexedStatisticsgetAllSampleStat in interface ObjectIndexedStatisticspublic java.lang.String toString()
AbstractSimpleStatstoString in class AbstractSimpleStatsAbstractSimpleStats.getDataLine()