public class StdDistributionStatistic extends DistributionStatistic implements BatchExportable, ReflectionConstructable2<SimNode,Parameters>
StdDistributionStatistic extends
DistributionStatistic and provides
an implementation for a distribution statistic.| Modifier and Type | Field and Description |
|---|---|
int |
arraySize |
double |
classWidth |
Summation[] |
cumulativeDist |
static java.lang.String |
EXPORT_BINS |
static java.lang.String |
EXPORT_OVERFLOWS |
static java.lang.String |
EXPORT_SUMOFWEIGHTS |
static java.lang.String |
EXPORT_UNDERFLOWS |
static java.lang.String |
EXPORT_WEIGHT |
double |
lowerLimit |
Summation[] |
marginalDist |
Summation |
overflowProb |
Summation |
underflowProb |
double |
upperLimit |
sampleIndex, simNode, traceWriterCREATE_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
StdDistributionStatistic(int arraySize,
double lowerLimit,
double upperLimit,
SimNode ownNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasures(int batchNumber) |
static StdDistributionStatistic |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
int |
getArraySize() |
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 |
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(double sample,
double weight) |
printResults, update, update, updateaddResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntrypublic static final java.lang.String EXPORT_UNDERFLOWS
public static final java.lang.String EXPORT_OVERFLOWS
public static final java.lang.String EXPORT_SUMOFWEIGHTS
public static final java.lang.String EXPORT_WEIGHT
public static final java.lang.String EXPORT_BINS
public final int arraySize
public final double classWidth
public final double lowerLimit
public final double upperLimit
public final Summation underflowProb
public final Summation overflowProb
public final Summation[] marginalDist
public final Summation[] cumulativeDist
public StdDistributionStatistic(int arraySize,
double lowerLimit,
double upperLimit,
SimNode ownNode)
public static StdDistributionStatistic createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructablepublic int getArraySize()
getArraySize in class DistributionStatisticpublic double getBatchDistribution(int bucketIndex)
getBatchDistribution in class DistributionStatisticpublic double getBatchOverflowProb()
getBatchOverflowProb in class DistributionStatisticpublic double getBatchProbability(int bucketIndex)
getBatchProbability in class DistributionStatisticpublic double getBatchUnderflowProb()
getBatchUnderflowProb in class DistributionStatisticpublic double getDistribution(int bucketIndex)
getDistribution in class DistributionStatisticpublic double getDistributionConfInterval(int bucketIndex)
getDistributionConfInterval in class DistributionStatisticpublic double getLowerBound(int bucketIndex)
getLowerBound in class DistributionStatisticpublic double getOverflowConfInterval()
getOverflowConfInterval in class DistributionStatisticpublic double getOverflowProbability()
getOverflowProbability in class DistributionStatisticpublic double getProbability(int bucketIndex)
getProbability in class DistributionStatisticpublic double getProbabilityConfInterval(int bucketIndex)
getProbabilityConfInterval in class DistributionStatisticpublic double getUnderflowConfInterval()
getUnderflowConfInterval in class DistributionStatisticpublic double getUnderflowProbability()
getUnderflowProbability in class DistributionStatisticpublic double getUpperBound(int bucketIndex)
getUpperBound in class DistributionStatisticpublic void update(double sample,
double weight)
update in class DistributionStatisticpublic void computeMeasures(int batchNumber)
computeMeasures in class Statisticpublic void resetBatchStatistic()
StatisticresetBatchStatistic in class Statisticpublic void resetStatistic()
StatisticresetStatistic in class Statisticpublic 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 reader