public class UnlimitedUnbatchedBoundaryStatistic extends BoundaryStatistic implements BatchExportable
UnlimitedUnbatchedBoundaryStatistic provides an implementation
of BoundaryStatistic to calculate quantiles for a given
percentage. Note that the percentage parameter in the constructor must be
between 0 and 1.sampleIndex, simNode, traceWriter| Constructor and Description |
|---|
UnlimitedUnbatchedBoundaryStatistic(double percentage,
SimNode ownNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasures(int batchNumber) |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
int |
getNoOfSamples() |
double |
getPercentage() |
double |
getQuantile() |
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, printResultsaddResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntrypublic UnlimitedUnbatchedBoundaryStatistic(double percentage,
SimNode ownNode)
public int getNoOfSamples()
getNoOfSamples in class BoundaryStatisticpublic double getPercentage()
getPercentage in class BoundaryStatisticpublic double getQuantile()
getQuantile in class BoundaryStatisticpublic void update(double sample)
update in class BoundaryStatisticpublic 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 ResultException
BatchExportableimportBatch despite the keywords.exportBatch in interface BatchExportablewriter - the result writer which preserves the stateResultException - if any exception occurs while writing a result to the writerpublic void importBatch(ResultReader reader) throws ResultException
BatchExportableexportBatch despite the keywords.importBatch in interface BatchExportablereader - the result reader which contains the batch stateResultException - if any exception occurs while reading a result from the reader