public class ExactAutoCorrelationStatistic extends AutoCorrelationStatistic implements BatchExportable
Modifier and Type | Field and Description |
---|---|
protected Summation[] |
coeffMeasures |
protected Summation[] |
covarianceMeasures |
protected int |
currentPos |
protected int |
lag |
protected int[] |
noOfSamples |
protected double[] |
sampleArray
Last
lag samples |
protected Summation[] |
xLowerSampleSum |
protected Summation[] |
xUpperSampleSum |
protected Summation[] |
xySampleSummation |
sampleIndex, simNode, traceWriter
Constructor and Description |
---|
ExactAutoCorrelationStatistic(int lag,
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 |
getCoefficient(int index) |
double |
getCoefficientConfidenceInterval(int index) |
double |
getCovariance(int index) |
double |
getCovarianceConfidenceInterval(int index) |
int |
getLag() |
double |
getNoOfSamples(int index) |
void |
importBatch(ResultReader reader)
Imports the state of a batch from the result reader.
|
void |
resetBatchStatistic()
only between batches
|
void |
resetSampleArray() |
void |
resetStatistic()
reset complete statistic
|
void |
update(double sample,
boolean useValue) |
getResultTypeName, printResults, update
addResultTag, addResultTag, disableTracing, enableTracing, handleInitSimulation, handleStartBatch, handleStartTransientPhase, handleStopBatch, handleStopTransientPhase, printComments, update, writeTraceEntry
protected int lag
protected double[] sampleArray
lag
samplesprotected Summation[] xUpperSampleSum
protected Summation[] xLowerSampleSum
protected Summation[] xySampleSummation
protected int[] noOfSamples
protected int currentPos
protected Summation[] coeffMeasures
protected Summation[] covarianceMeasures
public ExactAutoCorrelationStatistic(int lag, java.lang.String name, SimNode parentNode)
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 double getCoefficient(int index)
getCoefficient
in class AutoCorrelationStatistic
public double getCoefficientConfidenceInterval(int index)
getCoefficientConfidenceInterval
in class AutoCorrelationStatistic
public double getCovariance(int index)
getCovariance
in class AutoCorrelationStatistic
public double getCovarianceConfidenceInterval(int index)
getCovarianceConfidenceInterval
in class AutoCorrelationStatistic
public int getLag()
getLag
in class AutoCorrelationStatistic
public double getNoOfSamples(int index)
getNoOfSamples
in class AutoCorrelationStatistic
public void resetSampleArray()
resetSampleArray
in class AutoCorrelationStatistic
public void update(double sample, boolean useValue)
update
in class AutoCorrelationStatistic
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