jsim.statistic
Class SampleStat

java.lang.Object
  extended by jsim.statistic.Statistic
      extended by jsim.statistic.SampleStat
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BatchStat

public class SampleStat
extends Statistic

This class provides facilities for gathering and displaying sample statistical summary results of simulation runs.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jsim.statistic.Statistic
CONF_LEVEL, LABEL, lastTime, MAX_DOUBLE, maxValue, minValue, MONITOR, name, nobs, primary, sum, sumSquares, sumSquBatch, trc
 
Constructor Summary
SampleStat(java.lang.String name)
          Constructs a Sample Statistic with the given name
 
Method Summary
 boolean tally(double val)
          Tally statistical information on sample data.
 
Methods inherited from class jsim.statistic.Statistic
confidence, confidence, getName, getStats, getSumSquBatch, max, mean, min, precision, precision, printLabel, printStat, resetStat, rms, samples, setPrimary, stdDev, variance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleStat

public SampleStat(java.lang.String name)
Constructs a Sample Statistic with the given name

Parameters:
name - the name of this Sample Statistic
Method Detail

tally

public boolean tally(double val)
Tally statistical information on sample data. modified by Xuewei Xiang, 11/17/98

Parameters:
val - value to collect
Returns:
SampleStat the object itself