public class MultipleSimpleStatsTally extends SimpleStatsTally implements IndexedSampleStatistics
The getters inherited from SimpleStatsTally will return
statistics for all of the properties, independent of index.
| Modifier and Type | Field and Description |
|---|---|
private java.util.TreeMap<java.lang.Integer,SimpleStatsTally> |
indexedStats
Holds the collection of statistics.
|
count, DEFAULT_NAME, DEFAULT_NUMBER_FORMAT, maxObs, minObs, name, numberFormatEOL| Constructor and Description |
|---|
MultipleSimpleStatsTally()
Creates a new instance with the default name.
|
MultipleSimpleStatsTally(java.lang.String name)
Creates a new instance with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getAllCount()
Gets the current number of observations for all of the properties in the
indexed property associated with this statistic.
|
double[] |
getAllMaxObs()
Gets the maximum value of all of the properties in the indexed property
associated with this statistic.
|
double[] |
getAllMean()
Gets the current mean of all of the properties in the indexed property
associated with this statistic.
|
double[] |
getAllMinObs()
Gets the minimum value of all of the properties in the indexed property
associated with this statistic.
|
SampleStatistics[] |
getAllSampleStat()
Gets the underlying SampleStatistics for all of the properties in the
indexed property associated with this statistic.
|
double[] |
getAllStandardDeviation()
Gets the current standard deviation of all of the properties in the
indexed property associated with this statistic.
|
double[] |
getAllVariance()
Gets the current variance of all of the properties in the indexed
property associated with this statistic.
|
int |
getCount(int index) |
double |
getMaxObs(int index) |
double |
getMean(int index) |
double |
getMinObs(int index) |
double |
getStandardDeviation(int index) |
double |
getVariance(int index) |
void |
newObservation(double x,
int index)
Adds a new observation for the given member of the collection of
properties associated with this SampleStatistic.
|
void |
newObservation(java.lang.Number num,
int index)
Adds a new observation for the given member of the collection of
properties associated with this SampleStatistic.
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
If the PropertyChangeEvent contains the indexed property associated with
this statistic then record a new observation for the index and value
contained in the event.
|
void |
reset()
Should reset/initialize all relevant counters.
|
java.lang.String |
toString()
Produces a String containing the name, SamplingType, and DataLines for
all of the properties.
|
getMean, getSamplingType, getStandardDeviation, getVariance, newObservationclone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, setName, setNumberFormat, setSamplingTypeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCount, getMaxObs, getMean, getMinObs, getName, getSamplingType, getStandardDeviation, getVariance, newObservation, newObservation, newObservation, newObservation, setName, setNumberFormat, setSamplingTypeprivate java.util.TreeMap<java.lang.Integer,SimpleStatsTally> indexedStats
public MultipleSimpleStatsTally()
setName.public MultipleSimpleStatsTally(java.lang.String name)
name - The name of the property to collect statistics on.public void newObservation(double x,
int index)
IndexedSampleStatisticsnewObservation in interface IndexedSampleStatisticsx - The current value of the property.index - The index of the property.public void newObservation(java.lang.Number num,
int index)
IndexedSampleStatisticsnewObservation in interface IndexedSampleStatisticsnum - The new observationindex - The index of the property.public double getMean(int index)
getMean in interface IndexedSampleStatisticsindex - The index of the property.public double getVariance(int index)
getVariance in interface IndexedSampleStatisticsindex - The index of the property.public double getStandardDeviation(int index)
getStandardDeviation in interface IndexedSampleStatisticsindex - The index of the property.public int getCount(int index)
getCount in interface IndexedSampleStatisticsindex - The index of the property.public double getMinObs(int index)
getMinObs in interface IndexedSampleStatisticsindex - The index of the property.public double getMaxObs(int index)
getMaxObs in interface IndexedSampleStatisticsindex - The index of the property.public double[] getAllMean()
IndexedSampleStatisticsgetAllMean in interface IndexedSampleStatisticspublic double[] getAllVariance()
IndexedSampleStatisticsgetAllVariance in interface IndexedSampleStatisticspublic double[] getAllStandardDeviation()
IndexedSampleStatisticsgetAllStandardDeviation in interface IndexedSampleStatisticspublic SampleStatistics[] getAllSampleStat()
IndexedSampleStatisticsgetAllSampleStat in interface IndexedSampleStatisticspublic double[] getAllMaxObs()
IndexedSampleStatisticsgetAllMaxObs in interface IndexedSampleStatisticspublic double[] getAllMinObs()
IndexedSampleStatisticsgetAllMinObs in interface IndexedSampleStatisticspublic int[] getAllCount()
IndexedSampleStatisticsgetAllCount in interface IndexedSampleStatisticspublic void propertyChange(java.beans.PropertyChangeEvent e)
Note: MultipleSimpleStatsTally cannot be reset by an event
like AbstractSimpleStats.
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class AbstractSimpleStatse - Given PropertyChangeEventpublic void reset()
SampleStatisticsreset in interface SampleStatisticsreset in class SimpleStatsTallypublic java.lang.String toString()
toString in class AbstractSimpleStatsAbstractSimpleStats.getDataLine()