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, writeTraceEntryprotected 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 Printablepublic java.lang.String getResultTypeName()
getResultTypeName in interface Printablepublic 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 readerpublic void handleStopTransientPhase()
handleStopTransientPhase in class Statisticpublic void computeMeasures(int batchNumber)
computeMeasures in class Statisticpublic void resetBatchStatistic()
StatisticresetBatchStatistic in class Statisticpublic void resetStatistic()
StatisticresetStatistic in class Statisticpublic double getCoVMean(int ldBlockSize)
public double getFIMean(int ldBlockSize)
public double getCoVConfInterval(int ldBlockSize)
public double getFIConfInterval(int ldBlockSize)
public double getBatchCoV(int ldBlockSize)