public class StdSampleStatistic extends SampleStatistic implements BatchExportable
StdSampleStatistic provides an implementation for a sample
statistic. See SampleStatisticsampleIndex, simNode, traceWriter| Constructor and Description |
|---|
StdSampleStatistic(SimNode ownNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasures(int batchNumber) |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
double |
getBatchCoefficient() |
long |
getBatchEvents() |
double |
getBatchMean() |
double |
getBatchStandardDeviation() |
double |
getBatchVariance() |
double |
getCoefficient() |
double |
getCoefficientConfidenceInterval() |
double |
getDeviation() |
double |
getDeviationConfidenceInterval() |
long |
getEvents() |
double |
getMaximum() |
double |
getMean() |
double |
getMeanConfidenceInterval() |
double |
getMinimum() |
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) |
printResults, updateaddResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntrypublic StdSampleStatistic(SimNode ownNode)
public 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 void update(double sample)
update in class SampleStatisticpublic double getBatchCoefficient()
getBatchCoefficient in class SampleStatisticpublic long getBatchEvents()
getBatchEvents in class SampleStatisticpublic double getBatchMean()
getBatchMean in class SampleStatisticpublic double getBatchVariance()
getBatchVariance in class SampleStatisticpublic double getCoefficient()
getCoefficient in class SampleStatisticpublic double getCoefficientConfidenceInterval()
getCoefficientConfidenceInterval in class SampleStatisticpublic double getDeviation()
getDeviation in class SampleStatisticpublic double getDeviationConfidenceInterval()
getDeviationConfidenceInterval in class SampleStatisticpublic double getMaximum()
getMaximum in class SampleStatisticpublic double getMean()
getMean in class SampleStatisticpublic double getMeanConfidenceInterval()
getMeanConfidenceInterval in class SampleStatisticpublic double getMinimum()
getMinimum in class SampleStatisticpublic double getBatchStandardDeviation()
getBatchStandardDeviation in class SampleStatisticpublic long getEvents()
getEvents in class SampleStatisticpublic void computeMeasures(int batchNumber)
computeMeasures in class Statisticpublic void resetBatchStatistic()
StatisticresetBatchStatistic in class Statisticpublic void resetStatistic()
StatisticresetStatistic in class Statistic