|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.statistic.Statistic
public abstract class Statistic
This class provides facilities for gathering and displaying statistical summary results of simulation runs.
Field Summary | |
---|---|
protected static double |
CONF_LEVEL
Default confidence level (.95 or 95%) |
static java.lang.String[] |
LABEL
Standard label set for statistical results. |
protected double |
lastTime
Time of last observation |
protected static double |
MAX_DOUBLE
Largest double value in Java |
protected double |
maxValue
Maximum value of sample data |
protected double |
minValue
Minimum value of sample data |
protected static boolean |
MONITOR
Flag indicating whether to monitor (print) values as they are collected |
protected java.lang.String |
name
Name of the statistic being collected |
protected double |
nobs
Number of observations |
protected boolean |
primary
Whether this is the primary statistic for a model |
protected double |
sum
Sum of sample data |
protected double |
sumSquares
Sum of squares |
protected double |
sumSquBatch
Sum of Square value between two consective observations collected for batch statistics |
protected static java.util.logging.Logger |
trc
Tracing messages |
Constructor Summary | |
---|---|
Statistic(java.lang.String name)
Constructs a statistical object. |
Method Summary | |
---|---|
double |
confidence()
Return the confidence interval half-width for default confidence level. |
double |
confidence(double level)
Return the confidence interval half-width for level (e.g., .95). |
java.lang.String |
getName()
Get the name of this statistic. |
java.util.Vector |
getStats()
Get statistical value vector for this stat variable. |
double |
getSumSquBatch()
Return the sum of square value between the consective obs used for batch mean statistics. |
double |
max()
This method returns the maximum value collected. |
double |
mean()
This method returns the mean of the collected values. |
double |
min()
This method returns the minimum value collected. |
double |
precision()
Return the relative precision for the default confidence level. |
double |
precision(double level)
Return the relative precision for the given confidence level. |
static void |
printLabel()
Print column labels. |
void |
printStat()
Print statistical information. |
void |
resetStat(double time)
Reset the statistical counter. |
double |
rms()
This method returns root mean squares of collected data. |
int |
samples()
Return the number of samples. |
void |
setPrimary(boolean value)
Set the primary stat indicator. |
double |
stdDev()
This method returns the standard deviation of the collected values. |
double |
variance()
This method returns the variance of the collected values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final double MAX_DOUBLE
protected static final boolean MONITOR
protected static final double CONF_LEVEL
public static final java.lang.String[] LABEL
protected final java.lang.String name
protected static java.util.logging.Logger trc
protected boolean primary
protected double nobs
protected double lastTime
protected double minValue
protected double maxValue
protected double sum
protected double sumSquares
protected double sumSquBatch
Constructor Detail |
---|
public Statistic(java.lang.String name)
name
- name of statisticMethod Detail |
---|
public void setPrimary(boolean value)
value
- whether its primarypublic double min()
public double max()
public double mean()
public double variance()
public double stdDev()
public double rms()
public int samples()
public double confidence(double level)
level
- confidence level
public double confidence()
public double precision(double level)
level
- confidence level
public double precision()
public void resetStat(double time)
time
- time of resetpublic double getSumSquBatch()
public java.util.Vector getStats()
public static void printLabel()
public void printStat()
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |