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, update
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
protected 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
BatchExportable
importBatch
despite the keywords.exportBatch
in interface BatchExportable
writer
- the result writer which preserves the statePrintException
- if any exception occurs while writing a result to the writerpublic void importBatch(ResultReader reader) throws ImportException
BatchExportable
exportBatch
despite the keywords.importBatch
in interface BatchExportable
reader
- the result reader which contains the batch stateImportException
- if any exception occurs while reading a result from the readerpublic double getConfidenceInterval()
getConfidenceInterval
in class BatchSumStatistic
public double getStandardDeviation()
getStandardDeviation
in class BatchSumStatistic
public double getMaximum()
getMaximum
in class BatchSumStatistic
public double getMean()
getMean
in class BatchSumStatistic
public double getMinimum()
getMinimum
in class BatchSumStatistic
public long getNumberOfBatchEvents()
getNumberOfBatchEvents
in class BatchSumStatistic
public long getBatchSum()
getBatchSum
in class BatchSumStatistic
public long getNumberOfBatches()
getNumberOfBatches
in class BatchSumStatistic
public long getNumberOfEvents()
getNumberOfEvents
in class BatchSumStatistic
public void update(long sample)
update
in class BatchSumStatistic
public void computeMeasures(int batchNumber)
computeMeasures
in class Statistic
public void resetBatchStatistic()
Statistic
resetBatchStatistic
in class Statistic
public void resetStatistic()
Statistic
resetStatistic
in class Statistic