DataPipe
, DataPipeForked
, IDataSink
, IDataSource
public class AccumulatorVirialOverlapSingleAverage extends AccumulatorRatioAverageCovariance
AccumulatorAverage.StatType
Modifier and Type | Field | Description |
---|---|---|
protected double |
alphaCenter |
|
protected double |
alphaSpan |
|
protected long |
blockCounter |
|
protected java.io.FileWriter |
fileWriter |
|
protected double[] |
overlapBlockCovSum |
|
protected double[] |
overlapCorrelationSum |
|
protected double[] |
overlapFirstBlock |
|
protected double[] |
overlapMostRecentBlock |
average, AVERAGE, BLOCK_CORRELATION, blockCorrelation, blockCountDown, blockSize, count, dataGroup, doIncludeACInError, error, ERROR, MOST_RECENT, mostRecent, STANDARD_DEVIATION, standardDeviation
BLOCK_COVARIANCE, blockCovariance, blockCovSum, covariance, COVARIANCE, covSum, fullCovariance
blockDataSink, blockFilename, blockVarSum, correlationSum, currentBlockAvg, firstBlock, mostRecentBlock, negativeChop, numSavedBlockData, sanityCheckBC, savedBlockData, sumSquare, work, work2
ratio, RATIO, RATIO_ERROR, ratioError
active, hasUnpushedData, pushInterval, putCount
dataInfo, dataSink, tag
Constructor | Description |
---|---|
AccumulatorVirialOverlapSingleAverage(int aNBennetPoints,
boolean aIsReference) |
|
AccumulatorVirialOverlapSingleAverage(long blockSize,
int aNBennetPoints,
boolean aIsReference) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addData(IData value) |
Add the given values to the sums and block sums
|
void |
closeFile() |
|
protected void |
doBlockSum() |
Performs the block sum after blockSize calls to addData.
|
double |
getAlphaCenter() |
|
double |
getAlphaSpan() |
|
double |
getBennetAverage(int iParam) |
Returns average value of expression used to determine optimal
Bennet parameter (value[1]/(value[1]+expX[iParam]).
|
double |
getBennetBias(int iParam) |
Returns iParam'th factor used in the Bennet sum.
|
IData |
getData() |
Implements DataSource interface, but you probably want to
getData for a specific Bennet parameter.
|
IData |
getData(int iParam) |
Return all standard data corresponding to the given Bennet parameter.
|
int |
getNBennetPoints() |
|
void |
reset() |
Resets all sums to zero
|
void |
setBennetParam(double aCenter,
double aSpan) |
sets the range of parameter values used for Bennets method.
|
void |
setFile(java.lang.String fName) |
|
void |
setNumAlpha(int newNumAlpha) |
addDataSink, doIncludeACInError, getBlockCount, getBlockSize, getData, getSampleCount, setBlockSize, setIncludeACInError
statChoices
getBlockDataSink, getDoStrictBlockData, putDataInfo, readBlockData, setBlockDataSink, setWriteBlocks, writeBlockData
choices, getTag, processDataInfo
getPushInterval, isActive, processData, setActive, setPushInterval, toString
getDataInfo, getTag, putData
addDataSink, getDataSink, getDataSinks, removeDataSink, setDataSink, setDataSinks
getDataInfo, getTag
protected double[] overlapFirstBlock
protected double[] overlapMostRecentBlock
protected double[] overlapCorrelationSum
protected double[] overlapBlockCovSum
protected java.io.FileWriter fileWriter
protected long blockCounter
protected double alphaCenter
protected double alphaSpan
public AccumulatorVirialOverlapSingleAverage(int aNBennetPoints, boolean aIsReference)
public AccumulatorVirialOverlapSingleAverage(long blockSize, int aNBennetPoints, boolean aIsReference)
public void setBennetParam(double aCenter, double aSpan)
aCenter
- geometric mean of all valuesaSpan
- natural log of ratio of max value to aCenterpublic void setNumAlpha(int newNumAlpha)
public double getAlphaCenter()
public double getAlphaSpan()
public boolean addData(IData value)
addData
in class AccumulatorAverageCovariance
value
- data to be added.protected void doBlockSum()
AccumulatorAverageFixed
doBlockSum
in class AccumulatorAverageCovariance
public int getNBennetPoints()
public double getBennetBias(int iParam)
public IData getData()
getData
in interface IDataSource
getData
in class AccumulatorRatioAverageCovariance
public double getBennetAverage(int iParam)
public IData getData(int iParam)
public void reset()
reset
in class AccumulatorRatioAverageCovariance
public void setFile(java.lang.String fName)
public void closeFile()