|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.statistic.Statistic jsim.statistic.SampleStat jsim.statistic.BatchStat
public class BatchStat
This class provides facilities for gathering and displaying statistical summary results of batch runs.
Field Summary |
---|
Fields inherited from class jsim.statistic.Statistic |
---|
CONF_LEVEL, LABEL, lastTime, MAX_DOUBLE, maxValue, minValue, MONITOR, name, nobs, sum, sumSquares, sumSquBatch |
Constructor Summary | |
---|---|
BatchStat(java.lang.String name)
Constructs a batch statistic with name and default batch size. |
|
BatchStat(java.lang.String name,
int batchSize)
Constructs a batch statistic with name and batch size. |
Method Summary | |
---|---|
double[] |
getBatchData()
Get the vector which collects all the batch mean values. |
int |
getBatchSize()
Get the batch size. |
java.util.Vector |
getObsStats()
Get observational statistics for this batch stat variable. |
void |
setBatchProperties(int bSize,
int nBatches)
Set the batch size and number of batches. |
void |
setBatchSize(int batchSize)
Set the batch size. |
boolean |
tally(double value)
Save the value of the observation in bSum. |
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 |
---|
public BatchStat(java.lang.String name)
name
- name of the batch statisiticpublic BatchStat(java.lang.String name, int batchSize)
name
- name of the batch statisiticbatchSize
- size of a batchMethod Detail |
---|
public int getBatchSize()
public void setBatchSize(int batchSize)
batchSize
- the batch sizepublic boolean tally(double value) throws StatException
tally
in class SampleStat
value
- value being tallied
StatException
public void setBatchProperties(int bSize, int nBatches)
bSize
- size of batchesnBatches
- number of batches have been collectedpublic double[] getBatchData()
public java.util.Vector getObsStats()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |