public abstract class DistributionStatistic extends Statistic implements Printable
DistributionStatistic
or
StdDistributionStatistic
serve to
record measured values with the goal of determining a discrete distribution
(histogram). The measured values recorded with
update(double, double)
are qualified using a raster, that is
composed of an upper limit value and a lower limit value as well as the
number of partial sections in between. The parameters for the raster must be
declared upon constructor call. Additional to a measured value, a weight
(with default 1) that is multiplyed with the value can be passed with
update(double)
. getArraySize()
, generally fixed)
getOverflowProbability()
or
getOverflowConfInterval()
)
getUnderflowProbability()
or
getUnderflowConfInterval()
)
getProbability(int)
or
getProbabilityConfInterval(int)
including a confidence interval)
getDistribution(int)
or getDistributionConfInterval(int)
with a confidence interval)
getBatchOverflowProb()
)
getBatchUnderflowProb()
)
getBatchProbability(int)
)
getBatchDistribution(int)
)
For printing the results it defines the following keywords:
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
DistributionStatistic(SimNode ownNode) |
Modifier and Type | Method and Description |
---|---|
abstract int |
getArraySize() |
abstract double |
getBatchDistribution(int bucketIndex) |
abstract double |
getBatchOverflowProb() |
abstract double |
getBatchProbability(int bucketIndex) |
abstract double |
getBatchUnderflowProb() |
abstract double |
getDistribution(int bucketIndex) |
abstract double |
getDistributionConfInterval(int bucketIndex) |
abstract double |
getLowerBound(int bucketIndex) |
abstract double |
getOverflowConfInterval() |
abstract double |
getOverflowProbability() |
abstract double |
getProbability(int bucketIndex) |
abstract double |
getProbabilityConfInterval(int bucketIndex) |
java.lang.String |
getResultTypeName() |
abstract double |
getUnderflowConfInterval() |
abstract double |
getUnderflowProbability() |
abstract double |
getUpperBound(int bucketIndex) |
void |
printResults(ResultType type,
PrintResultWriter writer) |
void |
update(double sample) |
abstract void |
update(double sample,
double weight) |
addResultTag, addResultTag, computeMeasures, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, resetBatchStatistic, resetStatistic, update, writeTraceEntry
public DistributionStatistic(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(double sample, double weight)
public final void update(double sample)
public abstract int getArraySize()
public abstract double getLowerBound(int bucketIndex)
public abstract double getUpperBound(int bucketIndex)
public abstract double getUnderflowProbability()
public abstract double getUnderflowConfInterval()
public abstract double getOverflowProbability()
public abstract double getOverflowConfInterval()
public abstract double getProbability(int bucketIndex)
public abstract double getProbabilityConfInterval(int bucketIndex)
public abstract double getDistribution(int bucketIndex)
public abstract double getDistributionConfInterval(int bucketIndex)
public abstract double getBatchUnderflowProb()
public abstract double getBatchOverflowProb()
public abstract double getBatchProbability(int bucketIndex)
public abstract double getBatchDistribution(int bucketIndex)