public class ObjectMultiTallyStat extends SimpleStatsTally implements ObjectIndexedStatistics
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Object,SimpleStatsTally> |
stats |
count, DEFAULT_NAME, DEFAULT_NUMBER_FORMAT, maxObs, minObs, name, numberFormat
EOL
Constructor and Description |
---|
ObjectMultiTallyStat() |
ObjectMultiTallyStat(java.lang.String name) |
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 |
reset()
Should reset/initialize all relevant counters.
|
java.lang.String |
toString()
Return a String containing the Name, SamplingType, and the DataLine for
this SampleStatistic.
|
getMean, getSamplingType, getStandardDeviation, getVariance, newObservation
clone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, propertyChange, setName, setNumberFormat, setSamplingType
private java.util.Map<java.lang.Object,SimpleStatsTally> stats
public ObjectMultiTallyStat()
public ObjectMultiTallyStat(java.lang.String name)
public void reset()
SampleStatistics
reset
in interface SampleStatistics
reset
in class SimpleStatsTally
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 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()