public abstract class DistributionStatisticBase extends DistributionStatistic implements BatchExportable
StdDistributionStatistic, but buckets are
determined automatically. All samples are collected during the simulation. At
the end, the values are sorted and the quantiles are caluclated.
Output: This statistic is based on quantiles, so the size of "buckets" varies
(different to the StdDistributionStatistic). The main output is the
distribution over all drops. In addition, the distribution of each drop is
written to the result file separately. To have an approximation of the
estimation accuracy, the minimum and maximum value (over all drops) for each
quantile is calculated. Be careful: With few drops, this can become narrow,
although it might be inaccurate!
sampleIndex, simNode, traceWriter| Constructor and Description |
|---|
DistributionStatisticBase(SimNode ownNode,
int numberOfQuantiles) |
DistributionStatisticBase(SimNode ownNode,
int numberOfQuantiles,
boolean writeDropDistributions) |
DistributionStatisticBase(SimNode ownNode,
QuantileDescription quantiles,
boolean writeDropDistributions) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasures(int batchNumber) |
protected abstract DataStorage |
createNewDataStorage(int batchNumber) |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
int |
getArraySize()
distribution statistic interface
|
double |
getBatchDistribution(int bucketIndex) |
double |
getBatchOverflowProb() |
double |
getBatchProbability(int bucketIndex) |
double |
getBatchUnderflowProb() |
double |
getDistribution(int bucketIndex) |
double |
getDistributionConfInterval(int bucketIndex) |
double |
getLowerBound(int bucketIndex) |
double |
getOverflowConfInterval() |
double |
getOverflowProbability() |
double |
getProbability(int bucketIndex) |
double |
getProbabilityConfInterval(int bucketIndex) |
double |
getUnderflowConfInterval() |
double |
getUnderflowProbability() |
double |
getUpperBound(int bucketIndex) |
void |
handleStartBatch(int batchNumber) |
void |
handleStartTransientPhase() |
void |
handleStopBatch(int batchNumber) |
void |
handleStopTransientPhase() |
void |
importBatch(ResultReader reader)
Imports the state of a batch from the result reader.
|
void |
printResults(ResultType type,
PrintResultWriter writer) |
void |
resetBatchStatistic()
only between batches
|
void |
resetStatistic()
reset complete statistic
|
void |
update(double sample,
double weight) |
update, update, updateaddResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, printComments, update, writeTraceEntrypublic DistributionStatisticBase(SimNode ownNode, int numberOfQuantiles)
public DistributionStatisticBase(SimNode ownNode, int numberOfQuantiles, boolean writeDropDistributions)
public DistributionStatisticBase(SimNode ownNode, QuantileDescription quantiles, boolean writeDropDistributions)
public void update(double sample,
double weight)
update in class DistributionStatisticprotected abstract DataStorage createNewDataStorage(int batchNumber)
public void handleStartBatch(int batchNumber)
handleStartBatch in class Statisticpublic void handleStartTransientPhase()
handleStartTransientPhase in class Statisticpublic void handleStopTransientPhase()
handleStopTransientPhase in class Statisticpublic void handleStopBatch(int batchNumber)
handleStopBatch in class Statisticpublic void computeMeasures(int batchNumber)
computeMeasures in class Statisticpublic void resetBatchStatistic()
StatisticresetBatchStatistic in class Statisticpublic void resetStatistic()
StatisticresetStatistic in class Statisticpublic void printResults(ResultType type, PrintResultWriter writer) throws PrintException
printResults in interface PrintableprintResults in class DistributionStatisticPrintExceptionpublic 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 int getArraySize()
getArraySize in class DistributionStatisticpublic double getLowerBound(int bucketIndex)
getLowerBound in class DistributionStatisticpublic double getUpperBound(int bucketIndex)
getUpperBound in class DistributionStatisticpublic double getUnderflowProbability()
getUnderflowProbability in class DistributionStatisticpublic double getUnderflowConfInterval()
getUnderflowConfInterval in class DistributionStatisticpublic double getOverflowProbability()
getOverflowProbability in class DistributionStatisticpublic double getOverflowConfInterval()
getOverflowConfInterval in class DistributionStatisticpublic double getProbability(int bucketIndex)
getProbability in class DistributionStatisticpublic double getProbabilityConfInterval(int bucketIndex)
getProbabilityConfInterval in class DistributionStatisticpublic double getDistribution(int bucketIndex)
getDistribution in class DistributionStatisticpublic double getDistributionConfInterval(int bucketIndex)
getDistributionConfInterval in class DistributionStatisticpublic double getBatchUnderflowProb()
getBatchUnderflowProb in class DistributionStatisticpublic double getBatchOverflowProb()
getBatchOverflowProb in class DistributionStatisticpublic double getBatchProbability(int bucketIndex)
getBatchProbability in class DistributionStatisticpublic double getBatchDistribution(int bucketIndex)
getBatchDistribution in class DistributionStatistic