public class StdProbabilityStatistic extends ProbabilityStatistic implements BatchExportable
StdProbabilityStatistic
provides an implementation for a
probability statistic.Modifier and Type | Field and Description |
---|---|
protected Summation |
measuresSummation |
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
StdProbabilityStatistic(java.lang.String name,
SimNode parentNode) |
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(int number,
boolean special) |
getResultTypeName, printResults
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
protected final Summation measuresSummation
public StdProbabilityStatistic(java.lang.String name, SimNode parentNode)
public void exportBatch(ResultWriter writer) throws ResultException
BatchExportable
importBatch
despite the keywords.exportBatch
in interface BatchExportable
writer
- the result writer which preserves the stateResultException
- if any exception occurs while writing a result to the writerpublic void importBatch(ResultReader reader) throws ResultException
BatchExportable
exportBatch
despite the keywords.importBatch
in interface BatchExportable
reader
- the result reader which contains the batch stateResultException
- if any exception occurs while reading a result from the readerpublic double getBatchProbability()
getBatchProbability
in class ProbabilityStatistic
public double getConfidenceInterval()
getConfidenceInterval
in class ProbabilityStatistic
public double getMean()
getMean
in class ProbabilityStatistic
public void update(int number, boolean special)
update
in class ProbabilityStatistic
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