public class StdIntegralStatistic extends IntegralStatistic implements BatchExportable
StdIntegralStatistic
extends
IntegralStatistic
and provides an
implementation for an integral statistic.sampleIndex, simNode, traceWriter
Constructor and Description |
---|
StdIntegralStatistic(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 |
getBatchMean() |
double |
getConfidenceInterval() |
double |
getMaximum() |
double |
getMean() |
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 |
setStartValues(double time,
double height) |
void |
update(double time,
double height) |
getResultTypeName, printResults
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
public StdIntegralStatistic(SimNode ownNode)
public double getBatchMean()
getBatchMean
in class IntegralStatistic
public double getConfidenceInterval()
getConfidenceInterval
in class IntegralStatistic
public double getMaximum()
getMaximum
in class IntegralStatistic
public double getMean()
getMean
in class IntegralStatistic
public double getMinimum()
getMinimum
in class IntegralStatistic
public void setStartValues(double time, double height)
setStartValues
in class IntegralStatistic
public void update(double time, double height)
update
in class IntegralStatistic
public void resetBatchStatistic()
Statistic
resetBatchStatistic
in class Statistic
public void resetStatistic()
Statistic
resetStatistic
in class Statistic
public void computeMeasures(int batchNumber)
computeMeasures
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