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, variance
count, DEFAULT_NAME, DEFAULT_NUMBER_FORMAT, maxObs, minObs, name, numberFormat
EOL
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, setSamplingType
clone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, setName, setNumberFormat
private final java.util.Map<java.lang.Object,SampleStatistics> allSampleStat
public ObjectMultiTimeVaryingStat()
public ObjectMultiTimeVaryingStat(java.lang.String property)
public void reset()
SampleStatistics
reset
in interface SampleStatistics
reset
in class SimpleStatsTimeVarying
public void newObservation(double value, java.lang.Object source)
ObjectIndexedStatistics
newObservation
in interface ObjectIndexedStatistics
value
- The current value of the property.public void newObservation(java.lang.Number newObs, java.lang.Object source)
ObjectIndexedStatistics
newObservation
in interface ObjectIndexedStatistics
newObs
- The new observationpublic void propertyChange(java.beans.PropertyChangeEvent evt)
AbstractSimpleStats
If 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.PropertyChangeListener
propertyChange
in class AbstractSimpleStats
evt
- Given PropertyChangeEventpublic double getMean(java.lang.Object source)
getMean
in interface ObjectIndexedStatistics
public double getVariance(java.lang.Object source)
getVariance
in interface ObjectIndexedStatistics
public double getStandardDeviation(java.lang.Object source)
getStandardDeviation
in interface ObjectIndexedStatistics
public int getCount(java.lang.Object source)
getCount
in interface ObjectIndexedStatistics
public double getMinObs(java.lang.Object source)
getMinObs
in interface ObjectIndexedStatistics
public double getMaxObs(java.lang.Object source)
getMaxObs
in interface ObjectIndexedStatistics
public java.util.Map<java.lang.Object,java.lang.Double> getAllMean()
ObjectIndexedStatistics
getAllMean
in interface ObjectIndexedStatistics
public java.util.Map<java.lang.Object,java.lang.Double> getAllVariance()
ObjectIndexedStatistics
getAllVariance
in interface ObjectIndexedStatistics
public java.util.Map<java.lang.Object,java.lang.Double> getAllStandardDeviation()
ObjectIndexedStatistics
getAllStandardDeviation
in interface ObjectIndexedStatistics
public java.util.Map<java.lang.Object,java.lang.Integer> getAllCount()
ObjectIndexedStatistics
getAllCount
in interface ObjectIndexedStatistics
public java.util.Map<java.lang.Object,java.lang.Double> getAllMinObs()
ObjectIndexedStatistics
getAllMinObs
in interface ObjectIndexedStatistics
public java.util.Map<java.lang.Object,java.lang.Double> getAllMaxObs()
ObjectIndexedStatistics
getAllMaxObs
in interface ObjectIndexedStatistics
public java.util.Map<java.lang.Object,SampleStatistics> getAllSampleStat()
ObjectIndexedStatistics
getAllSampleStat
in interface ObjectIndexedStatistics
public java.lang.String toString()
AbstractSimpleStats
toString
in class AbstractSimpleStats
AbstractSimpleStats.getDataLine()