public abstract class RateStatistic extends Statistic implements Printable
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 void |
computeMeasures(int batchNumber,
double currentTime)
For light version
|
abstract double |
getBatchRate() |
abstract double |
getBatchSampleRate() |
abstract double |
getRate() |
abstract double |
getRateConfInterval() |
java.lang.String |
getResultTypeName() |
abstract double |
getSampleRate() |
abstract double |
getSampleRateConfInterval() |
void |
printResults(ResultType type,
PrintResultWriter writer) |
abstract void |
resetStatistic(double currentTime)
For light version
|
abstract void |
update(double amount) |
addResultTag, addResultTag, computeMeasures, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, resetBatchStatistic, resetStatistic, update, writeTraceEntry
public RateStatistic(SimNode ownNode)
public void printResults(ResultType type, PrintResultWriter writer)
printResults
in interface Printable
public java.lang.String getResultTypeName()
getResultTypeName
in interface Printable
public abstract void update(double amount)
public abstract double getRate()
public abstract double getRateConfInterval()
public abstract double getBatchRate()
public abstract double getSampleRate()
public abstract double getSampleRateConfInterval()
public abstract double getBatchSampleRate()
public abstract void computeMeasures(int batchNumber, double currentTime)
public abstract void resetStatistic(double currentTime)