ClusterAbstract, ClusterAbstractMultivalueClusterWheatleyMultibodyDerivatives, ClusterWheatleySoftDerivativesMixpublic class ClusterWheatleySoftDerivatives extends java.lang.Object implements ClusterAbstract, ClusterAbstractMultivalue
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ClusterWheatleySoftDerivatives.ClusterRetrievePrimes |
|
static class |
ClusterWheatleySoftDerivatives.ClusterRetrievePrimesBD |
Cluster returns only BD values.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected double[] |
avgAbsCheck |
|
protected double[] |
avgAbsCheckBD |
|
protected double |
BDAccFrac |
|
protected double |
beta |
|
protected int[][] |
binomial |
|
protected double |
checkFac |
|
protected ClusterWheatleySoftDerivativesBD |
clusterBD |
|
protected boolean |
count |
|
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 boolean |
lastValueBD |
|
protected int |
n |
|
protected long[] |
nCheck |
|
protected long[] |
nCheckTot |
|
protected int |
nDer |
|
static boolean |
pushme |
|
static boolean |
pushmeval |
|
protected IRandom |
random |
|
protected RandomMersenneTwister |
randomJustChecking |
|
protected double |
rCut2 |
|
protected long |
SoftBDcount |
|
protected int |
stepcount |
|
protected long |
timeBD |
|
protected double |
tol |
|
protected long |
totcount |
|
protected double[] |
value |
|
protected boolean |
valueBD |
| Constructor | Description |
|---|---|
ClusterWheatleySoftDerivatives(int nPoints,
MayerFunction f,
double tol,
int nDer) |
| 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[] |
getAllLastValues(BoxCluster box) |
|
double[] |
getAverageCheck() |
|
double[] |
getAverageCheckBD() |
|
long[] |
getNumBDChecks() |
|
long[] |
getNumCheckVisits() |
|
int |
getNumValues() |
|
long |
getSoftBDcount() |
|
double |
getSoftBDfrac() |
|
long |
getSoftcount() |
|
double |
getTimeBD() |
|
ClusterAbstract |
makeCopy() |
Returns another instance of an identical cluster (shallow copy).
|
int |
pointCount() |
Number of points in the cluster.
|
void |
printCheckData() |
|
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 |
setNumBDCheckBins(int nc) |
|
void |
setRCut(double newRCut) |
|
void |
setTemperature(double temperature) |
|
void |
setTolerance(double newTol) |
|
protected void |
updateF(BoxCluster box) |
|
double |
value(BoxCluster box) |
Value of this cluster for the given pairset at the specified reciprocal
temperature.
|
boolean |
valueIsBD() |
Returns true if the value most recently returned by value() was computed with BD.
|
protected final int n
protected final MayerFunction f
protected final int nDer
protected final double[][] fQ
protected final double[][] fC
protected final double[][] fA
protected final double[][] fB
protected long cPairID
protected long lastCPairID
protected final double[] value
protected final double[] lastValue
protected double beta
public static boolean pushme
public static boolean pushmeval
protected double tol
protected ClusterWheatleySoftDerivativesBD clusterBD
protected boolean debug
protected boolean doCaching
protected final int[][] binomial
protected long SoftBDcount
protected double BDAccFrac
protected IRandom random
protected int stepcount
protected long totcount
protected boolean count
protected double rCut2
protected boolean valueBD
protected boolean lastValueBD
protected long timeBD
protected double[] avgAbsCheck
protected double[] avgAbsCheckBD
protected long[] nCheck
protected long[] nCheckTot
protected double checkFac
protected RandomMersenneTwister randomJustChecking
public ClusterWheatleySoftDerivatives(int nPoints,
MayerFunction f,
double tol,
int nDer)
public void setNumBDCheckBins(int nc)
public void setTolerance(double newTol)
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 void setDoCaching(boolean newDoCaching)
public ClusterAbstract makeCopy()
ClusterAbstractmakeCopy in interface ClusterAbstractpublic int pointCount()
ClusterAbstractpointCount in interface ClusterAbstractpublic boolean valueIsBD()
public double value(BoxCluster box)
ClusterAbstractvalue in interface ClusterAbstractprotected void calcFullFQ(BoxCluster box)
public void setRCut(double newRCut)
public void printCheckData()
public void calcValue(BoxCluster box)
public double getTimeBD()
protected void updateF(BoxCluster box)
public void setTemperature(double temperature)
setTemperature in interface ClusterAbstractpublic int getNumValues()
getNumValues in interface ClusterAbstractMultivaluepublic double[] getAllLastValues(BoxCluster box)
getAllLastValues in interface ClusterAbstractMultivaluepublic long getSoftBDcount()
public long getSoftcount()
public double getSoftBDfrac()
public double[] getAverageCheck()
public double[] getAverageCheckBD()
public long[] getNumBDChecks()
public long[] getNumCheckVisits()