jsim.statistic
Class TimeStat

java.lang.Object
  extended by jsim.statistic.Statistic
      extended by jsim.statistic.TimeStat
All Implemented Interfaces:
java.io.Serializable

public class TimeStat
extends Statistic

This class provides facilities for gathering and displaying time persistent 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
TimeStat(java.lang.String name)
          Constructs a Time Persistent Statistic with the given name.
 
Method Summary
 TimeStat accumulate(double val, double time)
          Accumulate time persistent 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

TimeStat

public TimeStat(java.lang.String name)
Constructs a Time Persistent Statistic with the given name.

Parameters:
name - the name of the statistic
Method Detail

accumulate

public TimeStat accumulate(double val,
                           double time)
Accumulate time persistent statistical information on sample data.

Parameters:
val - value to collect
time - time of collection
Returns:
TimeStat the object itself