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,
java.lang.String name,
SimNode owner) |
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, printResults
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
public UnlimitedUnbatchedBoundaryStatistic(double percentage, java.lang.String name, SimNode owner)
public int getNoOfSamples()
getNoOfSamples
in class BoundaryStatistic
public double getPercentage()
getPercentage
in class BoundaryStatistic
public double getQuantile()
getQuantile
in class BoundaryStatistic
public void update(double sample)
update
in class BoundaryStatistic
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