public class FairnessStatistic extends Statistic implements BatchExportable, Printable
Modifier and Type | Field and Description |
---|---|
protected double[] |
blockCoVSums |
protected double[] |
blockFISums |
protected Summation[] |
covBatchMeans |
protected Summation[] |
fiBatchMeans
Fairness index
|
protected int |
ldMaxBlockSize |
protected int |
ldMinBlockSize |
protected int |
minBlockSize |
protected long[] |
noOfBlocks |
protected java.io.PrintWriter |
traceFile |
protected java.lang.String |
traceFileName |
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
FairnessStatistic(int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
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 |
getBatchCoV(int ldBlockSize) |
double |
getCoVConfInterval(int ldBlockSize) |
double |
getCoVMean(int ldBlockSize) |
double |
getFIConfInterval(int ldBlockSize) |
double |
getFIMean(int ldBlockSize) |
java.lang.String |
getResultTypeName() |
void |
handleStopTransientPhase() |
void |
importBatch(ResultReader reader)
Imports the state of a batch from the result reader.
|
void |
printResults(ResultType type,
PrintResultWriter writer) |
void |
resetBatchStatistic()
only between batches
|
void |
resetStatistic()
reset complete statistic
|
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, printComments, update, writeTraceEntry
protected java.lang.String traceFileName
protected java.io.PrintWriter traceFile
protected final int ldMinBlockSize
protected final int ldMaxBlockSize
protected final int minBlockSize
protected final Summation[] covBatchMeans
protected final Summation[] fiBatchMeans
protected final double[] blockCoVSums
protected final double[] blockFISums
protected final long[] noOfBlocks
public FairnessStatistic(int ldMinBlockSize, int ldMaxBlockSize, java.lang.String traceFileName, SimNode ownNode)
public void printResults(ResultType type, PrintResultWriter writer)
printResults
in interface Printable
public java.lang.String getResultTypeName()
getResultTypeName
in interface Printable
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 readerpublic void handleStopTransientPhase()
handleStopTransientPhase
in class Statistic
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 double getCoVMean(int ldBlockSize)
public double getFIMean(int ldBlockSize)
public double getCoVConfInterval(int ldBlockSize)
public double getFIConfInterval(int ldBlockSize)
public double getBatchCoV(int ldBlockSize)