public class VTStatistic extends Statistic implements BatchExportable, Printable, ReflectionConstructable2<SimNode,Parameters>
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, traceWriterCREATE_INSTANCE_METHOD_NAME| Constructor and Description |
|---|
VTStatistic(int ldMinBlockSize,
int ldMaxBlockSize,
java.lang.String traceFileName,
SimNode ownNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeMeasures(int batchNumber) |
static VTStatistic |
createInstance(SimNode ownNode,
Parameters pars)
as required by
ReflectionConstructable |
void |
exportBatch(ResultWriter writer)
Exports the batch state to a result writer.
|
double |
getBatchVariance(int ldBlockSize) |
double |
getConfidenceInterval(int ldBlockSize) |
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, writeTraceEntrypublic 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,
SimNode ownNode)
public static VTStatistic createInstance(SimNode ownNode, Parameters pars)
ReflectionConstructablepublic void printResults(ResultType type, PrintResultWriter writer) throws PrintException
printResults in interface PrintablePrintExceptionpublic void exportBatch(ResultWriter writer) throws PrintException
BatchExportableimportBatch despite the keywords.exportBatch in interface BatchExportablewriter - the result writer which preserves the statePrintException - if any exception occurs while writing a result to the writerpublic void importBatch(ResultReader reader) throws ImportException
BatchExportableexportBatch despite the keywords.importBatch in interface BatchExportablereader - the result reader which contains the batch stateImportException - 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 getVariance(int ldBlockSize)
public double getConfidenceInterval(int ldBlockSize)
public double getBatchVariance(int ldBlockSize)