public class StdDistributionStatistic extends DistributionStatistic implements BatchExportable
Modifier and Type | Field and Description |
---|---|
int |
arraySize |
double |
classWidth |
Summation[] |
cumulativeDist |
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, traceWriter
Constructor and Description |
---|
StdDistributionStatistic(int arraySize,
double lowerLimit,
double upperLimit,
java.lang.String name) |
StdDistributionStatistic(int arraySize,
double lowerLimit,
double upperLimit,
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.
|
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) |
getResultTypeName, printResults, update
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
public 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 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, java.lang.String name, SimNode parentNode)
public StdDistributionStatistic(int arraySize, double lowerLimit, double upperLimit, java.lang.String name)
public int getArraySize()
getArraySize
in class DistributionStatistic
public double getBatchDistribution(int bucketIndex)
getBatchDistribution
in class DistributionStatistic
public double getBatchOverflowProb()
getBatchOverflowProb
in class DistributionStatistic
public double getBatchProbability(int bucketIndex)
getBatchProbability
in class DistributionStatistic
public double getBatchUnderflowProb()
getBatchUnderflowProb
in class DistributionStatistic
public double getDistribution(int bucketIndex)
getDistribution
in class DistributionStatistic
public double getDistributionConfInterval(int bucketIndex)
getDistributionConfInterval
in class DistributionStatistic
public double getLowerBound(int bucketIndex)
getLowerBound
in class DistributionStatistic
public double getOverflowConfInterval()
getOverflowConfInterval
in class DistributionStatistic
public double getOverflowProbability()
getOverflowProbability
in class DistributionStatistic
public double getProbability(int bucketIndex)
getProbability
in class DistributionStatistic
public double getProbabilityConfInterval(int bucketIndex)
getProbabilityConfInterval
in class DistributionStatistic
public double getUnderflowConfInterval()
getUnderflowConfInterval
in class DistributionStatistic
public double getUnderflowProbability()
getUnderflowProbability
in class DistributionStatistic
public double getUpperBound(int bucketIndex)
getUpperBound
in class DistributionStatistic
public void update(double sample, double weight)
update
in class DistributionStatistic
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
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 reader