ClusterAbstract
public class ClusterChainHS extends java.lang.Object implements ClusterAbstract
Modifier and Type | Field | Description |
---|---|---|
protected double |
chainFrac |
|
protected long |
cPairID |
|
protected MayerFunction |
f |
|
protected double[][] |
fValues |
|
protected long |
lastCPairID |
|
protected double |
lastValue |
|
protected int |
n |
|
protected double[][] |
nC |
|
protected int |
nf1 |
|
boolean |
old |
|
protected double |
ringFrac |
|
protected double |
value |
Constructor | Description |
---|---|
ClusterChainHS(int nPoints,
MayerFunction f) |
Constructs with default to perform chain-only calculation, with chainFrac = 1.0
|
ClusterChainHS(int nPoints,
MayerFunction f,
boolean doRing) |
Constructs to perform either chain-only or ring-only calculation, as directed by doRing (true for ring-only)
|
ClusterChainHS(int nPoints,
MayerFunction f,
double chainFrac,
double ringFrac) |
Constructs to perform linear combination of chain and ring values, with computed cluster values
each weighted by given fractions, and summed to get total value
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
calcValue() |
|
static void |
main(java.lang.String[] args) |
|
ClusterAbstract |
makeCopy() |
Returns another instance of an identical cluster (shallow copy).
|
long |
numDiagrams() |
|
int |
pointCount() |
Number of points in the cluster.
|
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 int nf1
protected final MayerFunction f
protected final double[][] nC
protected final double[][] fValues
protected double ringFrac
protected double chainFrac
protected long cPairID
protected long lastCPairID
protected double value
protected double lastValue
public final boolean old
public ClusterChainHS(int nPoints, MayerFunction f)
public ClusterChainHS(int nPoints, MayerFunction f, boolean doRing)
public ClusterChainHS(int nPoints, MayerFunction f, double chainFrac, double ringFrac)
public 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
public long numDiagrams()
protected void calcValue()
protected void updateF(BoxCluster box)
public void setTemperature(double temperature)
setTemperature
in interface ClusterAbstract
public static void main(java.lang.String[] args)