public class BatchMeansTallyStat extends SimpleStatsTally
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Integer,SampleStatistics> |
batches |
private int |
batchSize |
protected SampleStatistics |
currentBatch |
protected int |
nextBatchID |
protected SampleStatistics |
transientStats |
private int |
truncationPoint |
count, DEFAULT_NAME, DEFAULT_NUMBER_FORMAT, maxObs, minObs, name, numberFormatEOL| Constructor and Description |
|---|
BatchMeansTallyStat(java.lang.String name,
int truncationPoint,
int batchSize) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Integer,SampleStatistics> |
getBatches() |
int |
getBatchSize() |
SampleStatistics |
getCurrentBatch() |
int |
getNextBatchID() |
SampleStatistics |
getTransientStats() |
int |
getTruncationPoint() |
void |
newObservation(double x)
Update the currentBatch stats.
|
protected void |
nextBatch()
Increment nextBatchID and set currentBact to a new SimpleStatsTally
|
void |
setBatchSize(int batchSize) |
void |
setTruncationPoint(int truncationPoint)
The measure is assumed to be in "steady-state" after this many
observations
|
getMean, getSamplingType, getStandardDeviation, getVariance, resetclone, getCount, getDataLine, getMaxObs, getMinObs, getName, newObservation, newObservation, newObservation, propertyChange, setName, setNumberFormat, setSamplingType, toStringprivate int truncationPoint
private int batchSize
protected int nextBatchID
protected SampleStatistics currentBatch
protected SampleStatistics transientStats
protected java.util.Map<java.lang.Integer,SampleStatistics> batches
public BatchMeansTallyStat(java.lang.String name,
int truncationPoint,
int batchSize)
name - The property to be listened totruncationPoint - The initial transient pointbatchSize - size of batches after truncationpublic void newObservation(double x)
newObservation in interface SampleStatisticsnewObservation in class SimpleStatsTallyx - the new observationprotected void nextBatch()
public int getTruncationPoint()
public void setTruncationPoint(int truncationPoint)
truncationPoint - the truncation pointjava.lang.IllegalArgumentException - if truncationPoint < 0public int getBatchSize()
public void setBatchSize(int batchSize)
batchSize - size of each batch after truncationjava.lang.IllegalArgumentException - if batchSize <= 0public int getNextBatchID()
public SampleStatistics getCurrentBatch()
public SampleStatistics getTransientStats()
public java.util.Map<java.lang.Integer,SampleStatistics> getBatches()