ClusterAbstract
ClusterWheatleyMultibody
, ClusterWheatleySoftMix
public class ClusterWheatleySoft extends java.lang.Object implements ClusterAbstract
Modifier and Type | Field | Description |
---|---|---|
protected double[] |
avgAbsCheck |
|
protected double[] |
avgAbsCheckBD |
|
protected double |
BDAccFrac |
|
protected double |
beta |
|
protected ClusterWheatleySoftBD |
clusterBD |
|
protected long |
countBD |
|
protected long |
cPairID |
|
protected boolean |
debug |
|
protected boolean |
doCaching |
|
protected MayerFunction |
f |
|
protected double[] |
fA |
|
protected double[] |
fB |
|
protected double[] |
fC |
|
protected double[] |
fQ |
|
protected long |
lastCPairID |
|
protected double |
lastValue |
|
protected int |
n |
|
protected long[] |
nCheck |
|
static boolean |
pushme |
|
protected IRandom |
random |
|
protected long |
timeBD |
|
protected double |
tol |
|
protected long |
totCount |
|
protected double |
value |
Constructor | Description |
---|---|
ClusterWheatleySoft(int nPoints,
MayerFunction f,
double tol) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
calcFullFQ(BoxCluster box) |
This calculates all FQ values given that the entries for pairs have
already been populated.
|
void |
calcValue(BoxCluster box) |
Returns the cluster value for the given configuration.
|
double[] |
getAverageCheck() |
|
double[] |
getAverageCheckBD() |
|
ClusterAbstract |
makeCopy() |
Returns another instance of an identical cluster (shallow copy).
|
int |
pointCount() |
Number of points in the cluster.
|
void |
setBDAccFrac(double p,
IRandom rng) |
Directs this cluster to only compute p fraction of the time when the
value is too small (below tol).
|
void |
setDoCaching(boolean newDoCaching) |
|
void |
setTemperature(double temperature) |
|
protected void |
updateF(BoxCluster box) |
|
double |
value(BoxCluster box) |
Value of this cluster for the given pairset at the specified reciprocal
temperature.
|
protected final int n
protected final MayerFunction f
protected final double[] fQ
protected final double[] fC
protected final double[] fA
protected final double[] fB
protected long cPairID
protected long lastCPairID
protected double value
protected double lastValue
protected double beta
public static boolean pushme
protected double tol
protected ClusterWheatleySoftBD clusterBD
protected boolean debug
protected boolean doCaching
protected long totCount
protected long countBD
protected double BDAccFrac
protected long timeBD
protected IRandom random
protected double[] avgAbsCheck
protected double[] avgAbsCheckBD
protected long[] nCheck
public ClusterWheatleySoft(int nPoints, MayerFunction f, double tol)
public void setDoCaching(boolean newDoCaching)
public void setBDAccFrac(double p, IRandom rng)
p
- the fraction of time BD values will be computedrng
- the random number generated used to decide to do BD or notpublic ClusterAbstract makeCopy()
ClusterAbstract
makeCopy
in interface ClusterAbstract
public int pointCount()
ClusterAbstract
pointCount
in interface ClusterAbstract
public double value(BoxCluster box)
ClusterAbstract
value
in interface ClusterAbstract
protected void calcFullFQ(BoxCluster box)
public void calcValue(BoxCluster box)
protected void updateF(BoxCluster box)
public void setTemperature(double temperature)
setTemperature
in interface ClusterAbstract
public double[] getAverageCheck()
public double[] getAverageCheckBD()