IDataSource
, AlphaSource
public class MeterOverlap extends java.lang.Object implements IDataSource, AlphaSource
Modifier and Type | Field | Description |
---|---|---|
protected double[] |
alpha |
|
protected double |
alphaCenter |
|
protected double |
alphaSpan |
|
protected DataDoubleArray |
data |
|
protected IDataInfo |
dataInfo |
|
protected IDataSource |
dataSourceRef |
|
protected IDataSource |
dataSourceTarget |
|
protected boolean |
isReference |
|
protected int |
numAlpha |
|
protected DataTag |
tag |
|
protected double |
temperature |
Constructor | Description |
---|---|
MeterOverlap(IDataSource dataSourceRef,
IDataSource dataSourceTarget,
double temperature,
boolean isReference) |
Meter to measure the "overlap" function for free energy calculations,
used as input to an AccumulatorVirialOverlapSingleAverage.
|
Modifier and Type | Method | Description |
---|---|---|
double |
getAlpha(int iAlpha) |
Returns the ith alpha value (i=0..(n-1))
|
double |
getAlphaCenter() |
|
double |
getAlphaSpan() |
|
DataDoubleArray |
getData() |
|
IDataInfo |
getDataInfo() |
|
int |
getNumAlpha() |
Returns the number of possible alpha values.
|
DataTag |
getTag() |
|
void |
setAlphaRange(double aCenter,
double aSpan) |
sets the range of parameter values used for Bennets method.
|
void |
setNumAlpha(int newNumAlpha) |
protected DataTag tag
protected IDataInfo dataInfo
protected IDataSource dataSourceRef
protected IDataSource dataSourceTarget
protected double temperature
protected DataDoubleArray data
protected int numAlpha
protected double alphaCenter
protected double alphaSpan
protected double[] alpha
protected boolean isReference
public MeterOverlap(IDataSource dataSourceRef, IDataSource dataSourceTarget, double temperature, boolean isReference)
dataSourceSame
- - data source that returns the energy of the
system being sampleddataSourceDifferent
- - data source that returns the energy of the
system not being sampledtemperature
- - the temperaturepublic void setAlphaRange(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 int getNumAlpha()
AlphaSource
getNumAlpha
in interface AlphaSource
public double getAlpha(int iAlpha)
AlphaSource
getAlpha
in interface AlphaSource
public DataDoubleArray getData()
getData
in interface IDataSource
public IDataInfo getDataInfo()
getDataInfo
in interface IDataSource
public DataTag getTag()
getTag
in interface IDataSource