public class StdBatchSumStatistic extends BatchSumStatistic implements BatchExportable
StdBatchSumStatistic extends
BatchSumStatistic and provides an
implementation for a batch sum statistic.| Modifier and Type | Field and Description |
|---|---|
protected long |
batchSamples |
protected Range |
measuresRange |
protected Summation |
measuresSummation |
protected long |
sum |
protected long |
totalSamples |
sampleIndex, simNode, traceWriter| Constructor and Description |
|---|
StdBatchSumStatistic(SimNode ownNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasures(int batchNumber) |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
long |
getBatchSum() |
double |
getConfidenceInterval() |
double |
getMaximum() |
double |
getMean() |
double |
getMinimum() |
long |
getNumberOfBatches() |
long |
getNumberOfBatchEvents() |
long |
getNumberOfEvents() |
double |
getStandardDeviation() |
void |
importBatch(ResultReader reader)
Imports the state of a batch from the result reader.
|
void |
resetBatchStatistic()
only between batches
|
void |
resetStatistic()
reset complete statistic
|
void |
update(long sample) |
printResults, updateaddResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntryprotected long sum
protected long batchSamples
protected long totalSamples
protected final Summation measuresSummation
protected final Range measuresRange
public StdBatchSumStatistic(SimNode ownNode)
public void exportBatch(ResultWriter writer) throws PrintException
BatchExportableimportBatch despite the keywords.exportBatch in interface BatchExportablewriter - the result writer which preserves the statePrintException - if any exception occurs while writing a result to the writerpublic void importBatch(ResultReader reader) throws ImportException
BatchExportableexportBatch despite the keywords.importBatch in interface BatchExportablereader - the result reader which contains the batch stateImportException - if any exception occurs while reading a result from the readerpublic double getConfidenceInterval()
getConfidenceInterval in class BatchSumStatisticpublic double getStandardDeviation()
getStandardDeviation in class BatchSumStatisticpublic double getMaximum()
getMaximum in class BatchSumStatisticpublic double getMean()
getMean in class BatchSumStatisticpublic double getMinimum()
getMinimum in class BatchSumStatisticpublic long getNumberOfBatchEvents()
getNumberOfBatchEvents in class BatchSumStatisticpublic long getBatchSum()
getBatchSum in class BatchSumStatisticpublic long getNumberOfBatches()
getNumberOfBatches in class BatchSumStatisticpublic long getNumberOfEvents()
getNumberOfEvents in class BatchSumStatisticpublic void update(long sample)
update in class BatchSumStatisticpublic void computeMeasures(int batchNumber)
computeMeasures in class Statisticpublic void resetBatchStatistic()
StatisticresetBatchStatistic in class Statisticpublic void resetStatistic()
StatisticresetStatistic in class Statistic