public class StdProbabilityStatistic extends ProbabilityStatistic implements BatchExportable
StdProbabilityStatistic extends
StdProbabilityStatistic and
provides an implementation for a probability statistic.| Modifier and Type | Field and Description |
|---|---|
protected Summation |
measuresSummation |
sampleIndex, simNode, traceWriter| Constructor and Description |
|---|
StdProbabilityStatistic(SimNode ownNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasures(int batchNumber) |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
double |
getBatchProbability() |
double |
getConfidenceInterval() |
double |
getMean() |
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 number,
boolean special) |
printResults, update, updateaddResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntryprotected final Summation measuresSummation
public StdProbabilityStatistic(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 getBatchProbability()
getBatchProbability in class ProbabilityStatisticpublic double getConfidenceInterval()
getConfidenceInterval in class ProbabilityStatisticpublic double getMean()
getMean in class ProbabilityStatisticpublic void update(long number,
boolean special)
update in class ProbabilityStatisticpublic void computeMeasures(int batchNumber)
computeMeasures in class Statisticpublic void resetBatchStatistic()
StatisticresetBatchStatistic in class Statisticpublic void resetStatistic()
StatisticresetStatistic in class Statistic