public class VTStatistic extends Statistic implements BatchExportable, Printable
VTStatistic
is a base class for a variance-time statistic in
order to estimate the Hurst parameter.Modifier and Type | Field and Description |
---|---|
protected Summation[] |
blockMeansSummations |
static java.lang.String |
EXPORT_BLOCK_MEAN |
static java.lang.String |
EXPORT_BLOCK_MEAN_LIST |
protected int |
ldMaxBlockSize |
protected int |
ldMinBlockSize |
protected Summation[] |
measuresSummations |
protected int |
minBlockSize |
protected java.io.PrintWriter |
traceFile |
protected java.lang.String |
traceFileName |
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
VTStatistic(int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
java.lang.String name,
SimNode parentNode) |
Modifier and Type | Method and Description |
---|---|
void |
computeMeasures(int batchNumber) |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
double |
getBatchVariance(int ldBlockSize) |
double |
getConfidenceInterval(int ldBlockSize) |
java.lang.String |
getResultTypeName() |
double |
getVariance(int ldBlockSize) |
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
public static final java.lang.String EXPORT_BLOCK_MEAN
public static final java.lang.String EXPORT_BLOCK_MEAN_LIST
protected java.io.PrintWriter traceFile
protected java.lang.String traceFileName
protected final int ldMinBlockSize
protected final int ldMaxBlockSize
protected final int minBlockSize
protected final Summation[] measuresSummations
protected final Summation[] blockMeansSummations
public VTStatistic(int ldMinBlockSize, int ldMaxBlockSize, java.lang.String traceFileName, java.lang.String name, SimNode parentNode)
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 getVariance(int ldBlockSize)
public double getConfidenceInterval(int ldBlockSize)
public double getBatchVariance(int ldBlockSize)