public class StdSampleStatistic extends SampleStatistic implements BatchExportable
StdSampleStatistic
provides an implementation for a sample
statistic. See SampleStatistic
sampleIndex, 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) |
getResultTypeName, printResults
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
public StdSampleStatistic(SimNode ownNode)
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 readerpublic void update(double sample)
update
in class SampleStatistic
public double getBatchCoefficient()
getBatchCoefficient
in class SampleStatistic
public long getBatchEvents()
getBatchEvents
in class SampleStatistic
public double getBatchMean()
getBatchMean
in class SampleStatistic
public double getBatchVariance()
getBatchVariance
in class SampleStatistic
public double getCoefficient()
getCoefficient
in class SampleStatistic
public double getCoefficientConfidenceInterval()
getCoefficientConfidenceInterval
in class SampleStatistic
public double getDeviation()
getDeviation
in class SampleStatistic
public double getDeviationConfidenceInterval()
getDeviationConfidenceInterval
in class SampleStatistic
public double getMaximum()
getMaximum
in class SampleStatistic
public double getMean()
getMean
in class SampleStatistic
public double getMeanConfidenceInterval()
getMeanConfidenceInterval
in class SampleStatistic
public double getMinimum()
getMinimum
in class SampleStatistic
public double getBatchStandardDeviation()
getBatchStandardDeviation
in class SampleStatistic
public long getEvents()
getEvents
in class SampleStatistic
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