IntegratorOverlap.ReferenceFracSource
DataOverlapCaching
public class DataOverlap extends java.lang.Object implements IntegratorOverlap.ReferenceFracSource
Modifier and Type | Class | Description |
---|---|---|
static interface |
DataOverlap.DataSourceOverlapAvg |
Interface for a class capable of return the average and uncertainty for
a particular value of alpha.
|
static class |
DataOverlap.DataSourceOverlapAvgCollapsing |
Implementation of DataSourceOverlapLogAvg that retrieves data from a
splitter whose data is dumped into different
AccumulatorAverageCollapsingLog instances.
|
static class |
DataOverlap.DataSourceOverlapAvgCollapsingSplit |
|
static class |
DataOverlap.DataSourceOverlapAvgSimple |
Implementation of DataSourceOverlapAvg that retrieves data from a single
AccumulatorAverage
|
static interface |
DataOverlap.DataSourceOverlapLogAvg |
Interface for a class capable of return the average and uncertainty as
well as the log of the average and the uncertainty in the log, for
a particular value of alpha.
|
Modifier and Type | Field | Description |
---|---|---|
protected AkimaSpline |
akima |
|
protected AlphaSource |
alphaSource |
|
boolean |
dumpit |
|
protected double[] |
err |
|
protected boolean |
includeAntibiasErr |
|
protected double[] |
lnAlpha |
|
protected double[] |
lnAlphaDiff |
|
protected double[] |
lnRatio |
|
protected static int |
RATIO |
|
protected static int |
REF |
|
protected DataOverlap.DataSourceOverlapAvg |
refAvg |
|
protected static int |
TARGET |
|
protected DataOverlap.DataSourceOverlapAvg |
targetAvg |
|
protected double[] |
tmp |
Constructor | Description |
---|---|
DataOverlap(DataOverlap.DataSourceOverlapAvg refAvg,
DataOverlap.DataSourceOverlapAvg targetAvg,
AlphaSource alphaSource) |
Modifier and Type | Method | Description |
---|---|---|
AlphaSource |
getAlphaSource() |
Returns an object capable of returning the different alpha values being
used.
|
double |
getAverage(int iAlpha) |
Returns the ratio of the reference to target overlap ratio
reference/target for the given value alpha.
|
double[] |
getAverageAndError(boolean isReference,
double iAlpha) |
Returns the average from the reference or target system (as specified)
and its uncertainty for the given value of alpha
|
double[] |
getAverageAndError(double iAlpha) |
Returns the average ratio and its uncertainty for the given value of
alpha
|
protected double[] |
getAverageAndError(int which,
double iAlpha,
boolean doLog) |
|
double |
getError(int iAlpha) |
Returns the error in the ratio of the reference to target
overlap-to-virial ratios (which reduces to target/reference)
for the given value of the Bennet parameter.
|
double |
getIdealRefFraction(double oldFrac) |
Returns the ideal fraction of time (or steps) spent in the reference
system under the assumption that the current data while spending
oldFrac amount of the calculation on the reference system.
|
double[] |
getLogAverageAndError(boolean isReference,
double iAlpha) |
Returns the natural log of the average value from the reference or target
system (as specified) and its uncertainty for the given value of alpha
|
double[] |
getLogAverageAndError(double iAlpha) |
Returns the natural log of the average ratio and its uncertainty for the
given value of alpha
|
double |
getLogError(int iAlpha) |
Returns the uncertainty in the log of the average corresponding to the
iAlpha value of alpha.
|
double[] |
getOverlapAverageAndError() |
Returns the ratio of the reference to target overlap-to-virial ratios
(which reduces to reference/target) for the optimal value of the Bennett
parameter.
|
DataOverlap.DataSourceOverlapAvg |
getRefSource() |
Returns object capable of retrieving data from the reference system.
|
DataOverlap.DataSourceOverlapAvg |
getTargetSource() |
Returns object capable of retrieving data from the target system.
|
protected void |
populateArrays(int which,
boolean doLog) |
|
void |
setRefAvg(DataOverlap.DataSourceOverlapAvg newRefAvg) |
|
void |
setTargetAvg(DataOverlap.DataSourceOverlapAvg newTargetAvg) |
protected DataOverlap.DataSourceOverlapAvg refAvg
protected DataOverlap.DataSourceOverlapAvg targetAvg
protected AlphaSource alphaSource
protected AkimaSpline akima
protected double[] lnAlpha
protected double[] err
protected double[] lnAlphaDiff
protected double[] lnRatio
protected double[] tmp
protected boolean includeAntibiasErr
protected static final int REF
protected static final int TARGET
protected static final int RATIO
public boolean dumpit
public DataOverlap(DataOverlap.DataSourceOverlapAvg refAvg, DataOverlap.DataSourceOverlapAvg targetAvg, AlphaSource alphaSource)
public void setRefAvg(DataOverlap.DataSourceOverlapAvg newRefAvg)
public void setTargetAvg(DataOverlap.DataSourceOverlapAvg newTargetAvg)
public AlphaSource getAlphaSource()
protected void populateArrays(int which, boolean doLog)
public double[] getOverlapAverageAndError()
public double[] getLogAverageAndError(double iAlpha)
public double[] getLogAverageAndError(boolean isReference, double iAlpha)
public double[] getAverageAndError(double iAlpha)
public double[] getAverageAndError(boolean isReference, double iAlpha)
protected double[] getAverageAndError(int which, double iAlpha, boolean doLog)
public double getIdealRefFraction(double oldFrac)
getIdealRefFraction
in interface IntegratorOverlap.ReferenceFracSource
public DataOverlap.DataSourceOverlapAvg getRefSource()
public DataOverlap.DataSourceOverlapAvg getTargetSource()
public double getAverage(int iAlpha)
public double getLogError(int iAlpha)
public double getError(int iAlpha)