public abstract class RateStatistic extends Statistic implements Printable, UnweightedSampleCollector<java.lang.Double>
RateStatistic serves to record rates, i.e. the amount
of information per time as well as the number of samples per time. The
update(double) function takes a double value indicating the amount
of information. Besides name and owner, an entity is required
for constructor call to have access to the method
getSystemTime(). getSampleRate()) including a confidence interval (
getRateConfInterval()).
For printing the results it defines the following keywords:
sampleIndex, simNode, traceWriter| Constructor and Description |
|---|
RateStatistic(SimNode ownNode) |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getBatchRate() |
abstract double |
getBatchSampleRate() |
abstract double |
getRate() |
abstract double |
getRateConfInterval() |
abstract double |
getSampleRate() |
abstract double |
getSampleRateConfInterval() |
void |
printResults(ResultType type,
PrintResultWriter writer) |
abstract void |
update(double amount) |
void |
update(java.lang.Double amount) |
addResultTag, addResultTag, computeMeasures, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, resetBatchStatistic, resetStatistic, update, writeTraceEntrypublic RateStatistic(SimNode ownNode)
public void printResults(ResultType type, PrintResultWriter writer) throws PrintException
printResults in interface PrintablePrintExceptionpublic abstract void update(double amount)
public void update(java.lang.Double amount)
update in interface UnweightedSampleCollector<java.lang.Double>public abstract double getRate()
public abstract double getRateConfInterval()
public abstract double getBatchRate()
public abstract double getSampleRate()
public abstract double getSampleRateConfInterval()
public abstract double getBatchSampleRate()