public abstract class ProbabilityStatistic extends Statistic implements Printable
ProbabilityStatistic
serves to record the results of
Bernoulli trials, which are random experiments with only two possible results
(e.g., failure probability in a queue with limited capacity).
update(int, boolean)
returns the number of trials that have the same
result (true
or false
). getBatchProbability()
)
getMean()
) including a
confidence interval (getConfidenceInterval()
)
ProbabilityStatistic
, have been implemented in the
derived class
StdProbabilityStatistic
. An object
of this class can be created with the
createProbabilityStatistic()
method from
StatisticManager
and deleted with
deleteProbabilityStatistic()
.
For printing the results it defines the following keywords:
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
ProbabilityStatistic(SimNode ownNode) |
Modifier and Type | Method and Description |
---|---|
abstract double |
getBatchProbability() |
abstract double |
getConfidenceInterval() |
abstract double |
getMean() |
java.lang.String |
getResultTypeName() |
void |
printResults(ResultType type,
PrintResultWriter writer) |
abstract void |
update(int number,
boolean special) |
addResultTag, addResultTag, computeMeasures, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, resetBatchStatistic, resetStatistic, update, writeTraceEntry
public ProbabilityStatistic(SimNode ownNode)
public void printResults(ResultType type, PrintResultWriter writer)
printResults
in interface Printable
public java.lang.String getResultTypeName()
getResultTypeName
in interface Printable
public abstract void update(int number, boolean special)
public abstract double getMean()
public abstract double getBatchProbability()
public abstract double getConfidenceInterval()