DataPipe, DataPipeForked, IDataSink, IDataSourcepublic 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, standardDeviationBLOCK_COVARIANCE, blockCovariance, blockCovSum, covariance, COVARIANCE, covSum, fullCovarianceblockDataSink, blockFilename, blockVarSum, correlationSum, currentBlockAvg, firstBlock, mostRecentBlock, negativeChop, numSavedBlockData, sanityCheckBC, savedBlockData, sumSquare, work, work2ratio, RATIO, RATIO_ERROR, ratioErroractive, hasUnpushedData, pushInterval, putCountdataInfo, 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, setIncludeACInErrorstatChoicesgetBlockDataSink, getDoStrictBlockData, putDataInfo, readBlockData, setBlockDataSink, setWriteBlocks, writeBlockDatachoices, getTag, processDataInfogetPushInterval, isActive, processData, setActive, setPushInterval, toStringgetDataInfo, getTag, putDataaddDataSink, getDataSink, getDataSinks, removeDataSink, setDataSink, setDataSinksgetDataInfo, getTagprotected 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 AccumulatorAverageCovariancevalue - data to be added.protected void doBlockSum()
AccumulatorAverageFixeddoBlockSum in class AccumulatorAverageCovariancepublic int getNBennetPoints()
public double getBennetBias(int iParam)
public IData getData()
getData in interface IDataSourcegetData in class AccumulatorRatioAverageCovariancepublic double getBennetAverage(int iParam)
public IData getData(int iParam)
public void reset()
reset in class AccumulatorRatioAverageCovariancepublic void setFile(java.lang.String fName)
public void closeFile()